Compartilhar via


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.

Syntax

STDMETHOD(  
   get_ErrorCode  
)(HRESULT* errorCode) override;  

Parameters

errorCode
The location where the current error code is stored.

Return Value

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

Requirements

Header: async.h

Namespace: Microsoft::WRL

See Also

AsyncBase Class