ExternalException.ErrorCode Property   
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.
Gets the HRESULT of the error.
public:
 virtual property int ErrorCode { int get(); };public virtual int ErrorCode { get; }member this.ErrorCode : intPublic Overridable ReadOnly Property ErrorCode As IntegerProperty Value
The HRESULT of the error.
Remarks
See Common HRESULT values for a list of the more frequently encountered error codes. HRESULT values are defined in the Winerror.h header file.