IVsObjectList2.GetExpandedList(UInt32, Int32, IVsLiteTreeList) 方法

定义

展开树列表节点。

public:
 int GetExpandedList(System::UInt32 index, [Runtime::InteropServices::Out] int % pfCanRecurse, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ % pptlNode);
int GetExpandedList(unsigned int index, [Runtime::InteropServices::Out] int & pfCanRecurse, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList const & & pptlNode);
public int GetExpandedList (uint index, out int pfCanRecurse, out Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList pptlNode);
abstract member GetExpandedList : uint32 * int * IVsLiteTreeList -> int
Public Function GetExpandedList (index As UInteger, ByRef pfCanRecurse As Integer, ByRef pptlNode As IVsLiteTreeList) As Integer

参数

index
UInt32

中指定要展开的当前树列表的子节点的索引。

pfCanRecurse
Int32

弄一个指针,指向指示树列表可以递归的标志。

pptlNode
IVsLiteTreeList

弄指向所选节点接口的指针 IVsLiteTreeList

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

[C++]

HRESULT IVsObjectList2::GetExpandedList(  
   [in] ULONG Index,   
   [out] BOOL *pfCanRecurse,   
   [out] IVsLiteTreeList **pptlNode  
   );  

成功返回时,树列表节点将在 "对象浏览器" 窗口中展开,并显示所有子节点。 这是用于扩展列表的两种可用机制之一。 首选机制是 GetCategoryField2

适用于