AsyncBase::get_ErrorCode Method

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at AsyncBase::get_ErrorCode Method.

Retrieves the error code for the current asynchronous operation.

STDMETHOD(  
   get_ErrorCode  
)(HRESULT* errorCode) override;  

Parameters

errorCode
The location where the current error code is stored.

S_OK if successful; otherwise, E_ILLEGAL_METHOD_CALL if the current asynchronous operation is closed.

Header: async.h

Namespace: Microsoft::WRL

AsyncBase Class

Show: