DataDOMEvent.MatchExpression Property

Gets the XPath expression for the XML Document Object Model (DOM) node for which the event is currently being processed.

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

Syntax

'Declaration
ReadOnly Property MatchExpression As String
    Get
'Usage
Dim instance As DataDOMEvent
Dim value As String

value = instance.MatchExpression
string MatchExpression { get; }

Property Value

Type: System.String

Remarks

The XPath expression that the MatchExpression property contains points to an XML DOM node in the form's underlying XML document. This is the node that is currently being validated by the data validation event handler.

Important

This member can be accessed without restrictions.

Examples

In the following example, the MatchExpression property of the DataDOMEventObject object is used to display the XPath expression of the XML DOM node that is currently being validated:

thisXDocument.UI.Alert("Match expression: " + e.MatchExpression);

See Also

Reference

DataDOMEvent Interface

DataDOMEvent Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace