IVsObjectList2.GetBrowseObject(UInt32, Object) 方法

定义

返回一个指向给定列表项的属性 "浏览 IDispatch" 的指针。

public:
 int GetBrowseObject(System::UInt32 index, [Runtime::InteropServices::Out] System::Object ^ % ppdispBrowseObj);
int GetBrowseObject(unsigned int index, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppdispBrowseObj);
public int GetBrowseObject (uint index, out object ppdispBrowseObj);
abstract member GetBrowseObject : uint32 * obj -> int
Public Function GetBrowseObject (index As UInteger, ByRef ppdispBrowseObj As Object) As Integer

参数

index
UInt32

中指定感兴趣的列表项的索引。

ppdispBrowseObj
Object

弄指向 IDispatch 用于填充属性窗口的对象的指针。

返回

Int32

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

注解

COM 签名

从 vsshell80:

[C++]

HRESULT IVsObjectList2::GetBrowseObject(  
   [in] ULONG Index,   
   [out] IDispatch **ppdispBrowseObj  
);  

当在工具 UI 中选定列表项时,将在列表中调用此方法。 这同时适用于 类视图对象浏览器 工具。 许多实现(如 c + +)只需将 CodeModel 自动化对象重复用作属性浏览对象即可。

E_NOTIMPL如果不支持 "符号级别" 属性浏览,则可能返回。

适用于