XmlChangingEventArgs class
Collapse the table of content
Expand the table of content

XmlChangingEventArgs class

Provides data for the Changing event.


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

public abstract class XmlChangingEventArgs : XmlEventArgs

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.
© 2015 Microsoft