XmlEvents.Item Property (String) (Microsoft.Office.InfoPath)

Gets an XmlEvent from the XmlEvents collection for binding an event handler by specifying the XPath of the underlying XML document node that can raise the event.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Default Property Item ( _
    xpath As String _
) As XmlEvent
'Usage
Dim instance As XmlEvents
Dim xpath As String
Dim value As XmlEvent

value = instance(xpath)
public abstract XmlEvent this [
    string xpath
] { get; }

Parameters

  • xpath
    The XPath of the node to which the event handler is bound.

Property Value

The XmlEvent associated with the form node to which the event handler is bound.

Remarks

Important

The code to bind event handlers using the XmlEvents collection and XmlEvent class is not meant to be written by the developer in form code. The InternalStartup method and the event binding code within it are generated by InfoPath when you add event handlers using various user interface commands. You should not create the InternalStartup method or write any additional code within it yourself. For information about how to add event handlers using interface commands, see How to: Add an Event Handler.

See Also

Reference

XmlEvents Class
XmlEvents Members
Microsoft.Office.InfoPath Namespace