ExternalException.ErrorCode Property


Gets the HRESULT of the error.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public virtual int ErrorCode { get; }

Property Value

Type: System.Int32

The HRESULT of the error.

See Common HRESULT values for a list of the more frequently encountered error codes. HRESULT values are defined in the Winerror.h header file.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top