IVsLiteTree::SetRoot Method (IVsLiteTreeList^, IVsLiteTree^)

 

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(
	IVsLiteTreeList^ pList,
	[OutAttribute] IVsLiteTree^% ppClone
)

Parameters

pList
Type: Microsoft.VisualStudio.Shell.Interop::IVsLiteTreeList^

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

ppClone
Type: Microsoft.VisualStudio.Shell.Interop::IVsLiteTree^

[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

Type: System::Int32

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

[C++]

From vsshell.idl:

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