IAsyncInfo.ErrorCode Property


Gets a string that describes an error condition of the asynchronous operation.

 property HResult ErrorCode { HResult get(); };
HResult ErrorCode();
public System.Exception ErrorCode { get; }
var hResult = iAsyncInfo.errorCode;
Public ReadOnly Property ErrorCode As Exception

Property Value

HResult Exception

The error string.


Error codes are exposed as different types depending on the programming language you are using. Similarly, each language has different techniques for wrapping asynchronous method calls so that error conditions or cancellation can be handled. For more info see one of these topics:

Applies to

See also