System.Xml.XmlNodeChangedEventArgs Class

Assembly: System.Xml.dll
Namespace: System.Xml
Summary
Provides data for the XmlDocument.NodeChanged, XmlDocument.NodeChanging, XmlDocument.NodeInserted, XmlDocument.NodeInserting, XmlDocument.NodeRemoved and XmlDocument.NodeRemoving events.
C# Syntax:
public class 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 XmlNode.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.
See also:
System.Xml Namespace | XmlNodeChangedEventHandler

System.Xml.XmlNodeChangedEventArgs Member List:

Public Properties
Action Read-only

Gets a value indicating what type of node change event is occurring.
NewParent Read-only

Gets the value of the XmlNode.ParentNode after the operation completes.
Node Read-only

OldParent Read-only

Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Xml.XmlNodeChangedEventArgs Member Details

Property: Action (read-only)
Summary
Gets a value indicating what type of node change event is occurring.
C# Syntax:
public XmlNodeChangedAction Action {get;}

Return to top


Property: NewParent (read-only)
Summary
Gets the value of the XmlNode.ParentNode after the operation completes.
C# Syntax:
public XmlNode NewParent {get;}

Return to top


Property: Node (read-only)
Summary
Gets the XmlNode that is being added, removed or changed.
C# Syntax:
public XmlNode Node {get;}

Return to top


Property: OldParent (read-only)
Summary
Gets the value of the XmlNode.ParentNode before the operation began.
C# Syntax:
public XmlNode OldParent {get;}

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~XmlNodeChangedEventArgs();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.