IVsObjectList2.LocateExpandedList(IVsLiteTreeList, UInt32) 方法

定义

返回一个指针,该指针指向指定树列表的索引号。

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

参数

ExpandedList
IVsLiteTreeList

中指向 IVsLiteTreeList 接口的指针,该接口指定展开的列表。

iIndex
UInt32

弄指向一个整数的指针,该整数包含指定树列表的索引。

返回

Int32

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

注解

COM 签名

从 vsshell80:

[C++]

HRESULT IVsObjectList2::LocateExpandedList(  
   [in] IVsLiteTreeList* ExpandedList,   
   [out] ULONG *iIndex  
);  

ReAlign如果 TF_NORELOCATE 未设置节点的属性(由对的调用确定),则环境在命令期间调用此方法 GetFlags 。 如果找不到该列表, ExpandedList 将放弃。

适用于