XmlChangingEventArgs Class
Provides data for the Changing event.
Inheritance Hierarchy
System.Object
System.EventArgs
Microsoft.Office.InfoPath.XmlEventArgs
Microsoft.Office.InfoPath.XmlChangingEventArgs
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
Syntax
'Declaration
Public MustInherit Class XmlChangingEventArgs _
Inherits XmlEventArgs
'Usage
Dim instance As XmlChangingEventArgs
public abstract class XmlChangingEventArgs : XmlEventArgs
Remarks
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.
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.