XmlEventArgs Class
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.
Provides data for the Changed event.
public ref class XmlEventArgs abstract : EventArgs
public abstract class XmlEventArgs : EventArgs
type XmlEventArgs = class
inherit EventArgs
Public MustInherit Class XmlEventArgs
Inherits EventArgs
- Inheritance
-
XmlEventArgs
- Derived
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.
Constructors
XmlEventArgs() |
Properties
Match |
Gets an XPathExpression object which contains an XPath expression that returns the node that is currently being changed. |
NewValue |
Gets the new value for the node being changed. |
OldParent |
Gets an XPathNavigator object pointing to the node which is the parent of the node being deleted. |
OldValue |
Gets the original value of the node that is being changed. |
Operation |
Gets an XmlOperation enumeration that indicates the type of operation that occurred when the node was changed. |
Site |
Gets an XPathNavigator object pointing at the node that is being changed. |
UndoRedo |
Gets a value that indicates whether the node being changed is part of an undo or redo operation. |