XmlNodeChangedEventArgs Class
Provides data for the NodeChanged, NodeChanging, NodeInserted, NodeInserting, NodeRemoved and NodeRemoving events.
For a list of all members of this type, see XmlNodeChangedEventArgs Members.
System.Object
System.Xml.XmlNodeChangedEventArgs
[Visual Basic] Public Class XmlNodeChangedEventArgs [C#] public class XmlNodeChangedEventArgs [C++] public __gc class XmlNodeChangedEventArgs [JScript] public class XmlNodeChangedEventArgs
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.
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.
Requirements
Namespace: System.Xml
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System.Xml (in System.Xml.dll)
See Also
XmlNodeChangedEventArgs Members | System.Xml Namespace | XmlNodeChangedEventHandler