HResult structure

Applies to Windows and Windows Phone

Represents an error or warning.

.NET:  This class appears as System.Exception.

Syntax


var hResult = {
    value : /* Your value */
}

Attributes

[Version(0x06020000)]

Members

The HResult structure has these fields.

FieldData typeDescription
Value | value

Number [JavaScript] | int32 [C++]

An integer that describes an error or warning.

 

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this class is hidden and developers should use the System.Exception class.

Requirements

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

 

 

Show:
© 2014 Microsoft