This documentation is archived and is not being maintained.

XmlChangingEventArgs Class (Microsoft.Office.InfoPath)

Provides data for the Changing event.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in

Public MustInherit Class XmlChangingEventArgs
	Inherits XmlEventArgs
Dim instance As XmlChangingEventArgs

The XmlChangingEventArgs object is passed to the event handler for the Changing event, which occurs after changes to a form's underlying XML document have been made but before the changes have been accepted.

The XmlChangingEventArgs class is derived from the XmlEventArgs class which provides properties that can be used within the event handler to get information about the data that is about to be changed in the form's underlying XML document and the node that is changing. For example, the XmlEventArgs object provides the Site property which gets a reference to an XPathNavigator object that points to the node that is about to be changed in the form's underlying XML document. However, note that the form's underlying XML document is read-only during the Changing event.

In addition to these properties, the XmlChangingEventArgs class provides the CancelableArgs property for returning a XmlFormCancelEventArgs object for cancelling the event.


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