Files
mono/mcs/class/System.XML/System.Xml/XmlNodeChangedEventArgs.cs
T
Atsushi Eno 0e242ba0a0 2004-02-10 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : set owner element as parent on removal
	  events (though they are not "parent" in infoset or dom context)
	* XmlElement.cs : Don't remove attributes twice (raises extraneous
	  removal events).
	* XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
	  Added NET_1_2 members.

svn path=/trunk/mcs/; revision=22933
2004-02-10 05:41:09 +00:00

88 lines
1.2 KiB
C#

using System;
namespace System.Xml
{
/// <summary>
/// Passed to delegates on document tree changes
/// </summary>
public class XmlNodeChangedEventArgs
{
// Private data members
XmlNode _oldParent;
XmlNode _newParent;
XmlNodeChangedAction _action;
XmlNode _node;
// public properties
public XmlNodeChangedAction Action
{
get
{
return _action;
}
}
public XmlNode Node
{
get
{
return _node;
}
}
public XmlNode OldParent
{
get
{
return _oldParent;
}
}
public XmlNode NewParent
{
get
{
return _newParent;
}
}
#if NET_1_2
public string OldValue
{
get
{
throw new NotImplementedException ();
}
}
public string NewValue
{
get
{
throw new NotImplementedException ();
}
}
#endif
// Public Methods
// Internal Methods
internal XmlNodeChangedEventArgs(
XmlNodeChangedAction action,
XmlNode node,
XmlNode oldParent,
XmlNode newParent)
{
_node = node;
_oldParent = oldParent;
_newParent = newParent;
_action = action;
}
}
}