Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Clones a copy of the current IXMLDOMSelection, with the same position and context.

Script Syntax

Copy Code
var NewObjXMLDOMSelection = objXMLDOMSelection.clone();

Remarks

Script Parameters

None

Script Return Value

Object. Returns a copy of the IXMLDOMSelectionobject

C/C++ Syntax

Copy Code
HRESULT clone(
  IXMLDOMSelection** 
ppNode
);

Remarks

C/C++ Parameters

ppNode

[out, retval] The returned copy of the IXMLDOMSelectionobject.

C/C++ Return Value

S_OK

Value returned if the cloning is successful.

E_INVALIDARG

Value returned if the input argument is Null.

C/C++ Requirements

OS Versions: Windows CE .NET 4.0 and later.

Header: Msxml2.h, Msxml2.idl.

Link Library: Uuid.lib

General Remarks

This method applies to the following interface:

IXMLDOMSelection.

See Also

Reference

XML DOM Methods