XmlNodeChangedEventArgs XmlNodeChangedEventArgs XmlNodeChangedEventArgs XmlNodeChangedEventArgs Class

Definition

public ref class XmlNodeChangedEventArgs : EventArgs
public class XmlNodeChangedEventArgs : EventArgs
type XmlNodeChangedEventArgs = class
    inherit EventArgs
Public Class XmlNodeChangedEventArgs
Inherits EventArgs
Inheritance
XmlNodeChangedEventArgsXmlNodeChangedEventArgsXmlNodeChangedEventArgsXmlNodeChangedEventArgs

Remarks

The following C# code shows how to use the event handler.

//Add a new event handler.  
XmlDocument doc = new XmlDocument();  
doc.NodeInserted += new XmlNodeChangedEventHandler(NodeInsertedHandler);  
//Define the event handler.  
void NodeInsertedHandler(Object src, XmlNodeChangedEventArgs args)  
{  
 Console.WriteLine("Node " + args.Node.Name + " inserted!!");  
}  

Note

If an operation is comprised of multiple actions, it results in multiple events. For example, an AppendChild call may have to remove the node being appended from its previous parent. In this case you will see a NodeRemoved event followed by a NodeInserted event.

Constructors

XmlNodeChangedEventArgs(XmlNode, XmlNode, XmlNode, String, String, XmlNodeChangedAction) XmlNodeChangedEventArgs(XmlNode, XmlNode, XmlNode, String, String, XmlNodeChangedAction) XmlNodeChangedEventArgs(XmlNode, XmlNode, XmlNode, String, String, XmlNodeChangedAction) XmlNodeChangedEventArgs(XmlNode, XmlNode, XmlNode, String, String, XmlNodeChangedAction)

Initializes a new instance of the XmlNodeChangedEventArgs class.

Properties

Action Action Action Action

Gets a value indicating what type of node change event is occurring.

NewParent NewParent NewParent NewParent

Gets the value of the ParentNode after the operation completes.

NewValue NewValue NewValue NewValue

Gets the new value of the node.

Node Node Node Node

Gets the XmlNode that is being added, removed or changed.

OldParent OldParent OldParent OldParent

Gets the value of the ParentNode before the operation began.

OldValue OldValue OldValue OldValue

Gets the original value of the node.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also