Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1022 Bytes

asyncbase-close-method.md

File metadata and controls

42 lines (35 loc) · 1022 Bytes
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
AsyncBase::Close Method | Microsoft Docs
11/04/2016
cpp-windows
reference
async/Microsoft::WRL::AsyncBase::Close
C++
Close method
a52b1124-754b-4393-b491-64aae0c22f1c
3
mikeblome
mblome
ghogen

AsyncBase::Close Method

Closes the asynchronous operation.

Syntax

STDMETHOD(  
   Close  
)(void) override;  

Return Value

S_OK if the operation closes or is already closed; otherwise, E_ILLEGAL_STATE_CHANGE.

Remarks

Close() is a default implementation of IAsyncInfo::Close, and does no actual work. To actually close an asynchronous operation, override the OnClose() pure virtual method.

Requirements

Header: async.h

Namespace: Microsoft::WRL

See Also

AsyncBase Class