XmlEvents.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Item[String] |
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. |
Item[String, String] |
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 and the name of the secondary data source that supplies the data. |
Item[String]
public:
abstract property Microsoft::Office::InfoPath::XmlEvent ^ default[System::String ^] { Microsoft::Office::InfoPath::XmlEvent ^ get(System::String ^ xpath); };
public abstract Microsoft.Office.InfoPath.XmlEvent this[string xpath] { get; }
member this.Item(string) : Microsoft.Office.InfoPath.XmlEvent
Default Public MustOverride ReadOnly Property Item(xpath As String) As XmlEvent
Parameters
- xpath
- String
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.
Applies to
Item[String, String]
public:
abstract property Microsoft::Office::InfoPath::XmlEvent ^ default[System::String ^, System::String ^] { Microsoft::Office::InfoPath::XmlEvent ^ get(System::String ^ xpath, System::String ^ dataSourceName); };
public abstract Microsoft.Office.InfoPath.XmlEvent this[string xpath, string dataSourceName] { get; }
member this.Item(string * string) : Microsoft.Office.InfoPath.XmlEvent
Default Public MustOverride ReadOnly Property Item(xpath As String, dataSourceName As String) As XmlEvent
Parameters
- xpath
- String
The XPath of the node to which the event handler is bound.
- dataSourceName
- String
The name of the secondary data source.
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.