IVsObjectList.GetBrowseObject 方法

返回指向该属性浏览给定的 IDispatch 列表项。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function GetBrowseObject ( _
    index As UInteger, _
    <OutAttribute> ByRef ppdispBrowseObj As Object _
) As Integer
int GetBrowseObject(
    uint index,
    out Object ppdispBrowseObj
)

参数

  • index
    类型:System.UInt32
    [in] 指定列表项的索引相关。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

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

,在列表项在工具 UI 时,会选择此方法调用列表。 这适用于 类视图对象浏览器 工具。 ,当属性浏览对象,许多实现,如 C++,重用 CodeModel 自动化对象。

,如果不支持符号级别的属性浏览,您可能返回 E_NOTIMPL

.NET Framework 安全性

请参见

参考

IVsObjectList 接口

Microsoft.VisualStudio.Shell.Interop 命名空间