This documentation is archived and is not being maintained.

IVsLiteTree.SetRoot Method

Sets the root object of the tree.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int SetRoot (
	[InAttribute] IVsLiteTreeList pList,
	out IVsLiteTree ppClone
)
int SetRoot (
	/** @attribute InAttribute() */ IVsLiteTreeList pList, 
	/** @attribute OutAttribute() */ /** @ref */ IVsLiteTree ppClone
)
JScript does not support passing value-type arguments by reference.

Parameters

pList

[in] Pointer to an IVsLiteTreeList instance to use as the root.

ppClone

[out] Pointer to an IVsLiteTree that is a clone of the tree. Use null if you don't want to clone the tree.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

[C++]

From vsshell.idl:

HRESULT IVsLiteTree::SetRoot(
   [in] IVsLiteTreeList *pList,
   [out] IVsLiteTree **ppClone
);
Show: