Error.ErrorCode Property
Gets or sets the error code of an ErrorObject object.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Example
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.ErrorCode);
See Also
Reference
Error Interface
Error Members
Microsoft.Office.Interop.InfoPath Namespace