NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNode.Clone (XmlContext)

Returns a clone of this node in the given XML context.

[Visual Basic]
Overloads MustOverride Public Function Clone( _
   ByVal context As XmlContext _
) As XmlNode
[C#]
public abstract XmlNode Clone(
   XmlContext context
);
[C++]
public: virtual XmlNode* Clone(
   XmlContext* context
) = 0;
[JScript]
public abstract function Clone(
   context : XmlContext
) : XmlNode;

Parameters

context
The XML context to which the cloned node should belong, or null to use the same context as this node.

Return Value

A clone of this node.

Remarks

This method performs a deep clone operation, meaning that it clones both this node and any child nodes of this node. The Parent property of the returned node is null, but otherwise the returned node is an exact copy of this node.

The identifiers of the returned node and its child nodes belong to the given context. If context is null, the context of this node is substituted.

See Also

XmlNode Class | XmlNode Members | System.Xml Namespace | XmlNode.Clone Overload List