Delen via


IAsyncInfo.ErrorCode Property

Definition

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

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

Property Value

A string that describes an error condition of the asynchronous operation.

Remarks

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