AsyncBase::get_ErrorCode Method
Retrieves the error code for the current asynchronous operation.
STDMETHOD(
get_ErrorCode
)(HRESULT* errorCode) override;
- 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