ErrorDetails ErrorDetails ErrorDetails ErrorDetails Class

Definition

Provides information about an error that occurred.

public : sealed class ErrorDetails : IErrorDetailspublic sealed class ErrorDetails : IErrorDetailsPublic NotInheritable Class ErrorDetails Implements IErrorDetails// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Constructed using the CreateFromHResult factory method.

Properties

Description Description Description Description

Gets a short description of the error.

public : PlatForm::String Description { get; }public string Description { get; }Public ReadOnly Property Description As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A short description of the error.

HelpUri HelpUri HelpUri HelpUri

Gets the address to a help page about the error.

public : Uri HelpUri { get; }public Uri HelpUri { get; }Public ReadOnly Property HelpUri As Uri// You can use this property in JavaScript.
Value
Uri Uri Uri Uri

The address to a help page about the error.

LongDescription LongDescription LongDescription LongDescription

Gets a detailed description of the error.

public : PlatForm::String LongDescription { get; }public string LongDescription { get; }Public ReadOnly Property LongDescription As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A detailed description of the error.

Methods

CreateFromHResultAsync(Int32) CreateFromHResultAsync(Int32) CreateFromHResultAsync(Int32) CreateFromHResultAsync(Int32)

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

public : static IAsyncOperation<ErrorDetails> CreateFromHResultAsync(int errorCode)public static IAsyncOperation<ErrorDetails> CreateFromHResultAsync(Int32 errorCode)Public Static Function CreateFromHResultAsync(errorCode As Int32) As IAsyncOperation( Of ErrorDetails )// You can use this method in JavaScript.
Parameters
errorCode
int Int32 Int32 Int32

The unique code representing the error.

Returns