Udostępnij za pośrednictwem


ErrorDetails.CreateFromHResultAsync(Int32) Method

Definition

Asynchronously creates an ErrorDetails object based on an HRESULT error code.

public:
 static IAsyncOperation<ErrorDetails ^> ^ CreateFromHResultAsync(int errorCode);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ErrorDetails> CreateFromHResultAsync(int const& errorCode);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ErrorDetails> CreateFromHResultAsync(int errorCode);
function createFromHResultAsync(errorCode)
Public Shared Function CreateFromHResultAsync (errorCode As Integer) As IAsyncOperation(Of ErrorDetails)

Parameters

errorCode
Int32

int

The unique code representing the error.

Returns

The newly created ErrorDetails object representing the error.

Attributes

Applies to