ErrorCode property
Collapse the table of content
Expand the table of content

IAsyncInfo.ErrorCode property

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

Syntax


Exception ErrorCode { get; }

Property value

Type: System.Exception [.NET] | Windows::Foundation::HResult [C++]

The error string.

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:

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

See also

IAsyncInfo
HResult
Asynchronous programming

 

 

Show:
© 2017 Microsoft