IVsLiteTree.SetRoot(IVsLiteTreeList, IVsLiteTree) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);