Edytuj

Udostępnij za pośrednictwem


Error.ErrorCode Property

Definition

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>);

Applies to