ErrorDetails.CreateFromHResultAsync(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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