Error.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 or sets the error code of an ErrorObject object.
public:
property int ErrorCode { int get(); void set(int value); };
public int ErrorCode { get; set; }
member this.ErrorCode : int with get, set
Public Property ErrorCode As Integer
Property Value
Examples
In the following example, the ErrorCode property of the Error object is used to display the error code number of an error in a message box:
ErrorObject er = thisXDocument.Errors[0];
IXMLDOMNode myNode = er.Node;
thisXDocument.UI.Alert("this is the error code: " + er.<span class="label">ErrorCode</span>);