Share via


XmlEventArgs Class

Provides data for the Changed event.

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

Syntax

'Declaration
'Usage

Remarks

The XmlEventArgs object is passed to the event handler for the Changed event, which occurs after changes to the form's underlying XML document have been accepted and the Validating event has occurred. The XmlEventArgs object provides a number of properties that can be used within the event handler to programmatically interact with the data that is being changed in the form's underlying XML document and to get information about the node that is being changed.

The XmlEventArgs object provides the Site property which gets a reference to an XPathNavigator object that that is positioned at the node that is being changed, and can be used to work with this node and other data in a form's underlying XML document.

The XmlChangingEventArgs and XmlValidatingEventArgs classes for the corresponding ChangingValidating events are derived from the XmlEventArgs class and expose the same set of properties.

Inheritance Hierarchy

System.Object
   System.EventArgs
    Microsoft.Office.InfoPath.XmlEventArgs
       Microsoft.Office.InfoPath.XmlChangingEventArgs
       Microsoft.Office.InfoPath.XmlValidatingEventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

XmlEventArgs Members
Microsoft.Office.InfoPath Namespace