Error.Node Property

Definition

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

public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::IXMLDOMNode ^ Node { Microsoft::Office::Interop::InfoPath::SemiTrust::IXMLDOMNode ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode Node { get; }
member this.Node : Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode
Public ReadOnly Property Node As IXMLDOMNode

Property Value

Examples

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

Remarks

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

Important: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to