AsyncBase::Close Method


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Closes the asynchronous operation.

)(void) override;  

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

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.

Header: async.h

Namespace: Microsoft::WRL

AsyncBase Class