IVsLiteTree.SetRoot(IVsLiteTreeList, IVsLiteTree) Method

Definition

Sets the root object of the tree.

public:
 int SetRoot(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ pList, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTree ^ % ppClone);
public:
 int SetRoot(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ pList, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTree ^ &  ppClone);
int SetRoot(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList const & pList, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTree const & & ppClone);
public int SetRoot (Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList pList, out Microsoft.VisualStudio.Shell.Interop.IVsLiteTree ppClone);
abstract member SetRoot : Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList * IVsLiteTree -> int
Public Function SetRoot (pList As IVsLiteTreeList, ByRef ppClone As IVsLiteTree) As Integer

Parameters

pList
IVsLiteTreeList

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

ppClone
IVsLiteTree

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

Returns

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

Remarks

COM Signature

[C++]

From vsshell.idl:

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

Applies to