Rediger

Del via


XmlNodeChangedEventArgs Class

Definition

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

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)

Initializes a new instance of the XmlNodeChangedEventArgs class.

Properties

Action

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

NewParent

Gets the value of the ParentNode after the operation completes.

NewValue

Gets the new value of the node.

Node

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

OldParent

Gets the value of the ParentNode before the operation began.

OldValue

Gets the original value of the node.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also