Share via


Error.Node property

Gets the XML Document Object Model (DOM) node of a form's underlying XML document that is associated with an ErrorObject object.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property Node As IXMLDOMNode
    Get
'Usage
Dim instance As Error
Dim value As IXMLDOMNode

value = instance.Node
IXMLDOMNode Node { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMNode

Remarks

Using the Node property, you can access all of the properties and methods that the XML DOM node object provides.

Examples

ErrorObject er = thisXDocument.Errors[0];
IXMLDOMNode myNode = er.Node;
thisXDocument.UI.Alert("this is the error node: " + myNode.text);

See also

Reference

Error interface

Error members

Microsoft.Office.Interop.InfoPath namespace