asp.net.ph

Exception.HResult Property

System Namespace   Exception Class


Returns or sets HRESULT, a coded numerical value that is assigned to a specific exception.

[ VB ]
<Serializable>
<ClassInterface ( ClassInterfaceType.AutoDual ) >
Protected Property HResult As Integer

[ C# ]
[ Serializable ]
[ ClassInterface ( ClassInterfaceType.AutoDual ) ]
Protected int HResult {get; set;}

[ C++ ]
[ Serializable ]
[ ClassInterface ( ClassInterfaceType.AutoDual ) ]
protected: __property int get_HResult ( );
protected: __property void set_HResult ( int );

[ JScript ]
protected
   Serializable
   ClassInterface ( ClassInterfaceType.AutoDual )
function get HResult ( ) : int;
Protected function set HResult ( int );

Property Value

The HRESULT value.

Remarks

HRESULT is a 32-bit value, divided into three different fields: a severity code, a facility code, and an error code. The severity code indicates whether the return value represents information, warning, or error. The facility code identifies the area of the system responsible for the error. The error code is a unique number that is assigned to represent the exception. Each exception is mapped to a distinct HRESULT. When managed code throws an exception, the runtime passes the HRESULT to the COM client. When unmanaged code returns an error, the HRESULT is converted to an exception, which is then thrown by the runtime.

See Also

Exception Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph