IVsObjectList2.GetBrowseObject Method

Returns a pointer to the property browse IDispatch for the given list item.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)


Function GetBrowseObject ( _
    index As UInteger, _
    <OutAttribute> ByRef ppdispBrowseObj As Object _
) As Integer
‘사용 방법
Dim instance As IVsObjectList2
Dim index As UInteger
Dim ppdispBrowseObj As Object
Dim returnValue As Integer

returnValue = instance.GetBrowseObject(index, _
int GetBrowseObject(
    uint index,
    out Object ppdispBrowseObj
int GetBrowseObject(
    [InAttribute] unsigned int index, 
    [OutAttribute] Object^% ppdispBrowseObj
abstract GetBrowseObject : 
        index:uint32 * 
        ppdispBrowseObj:Object byref -> int 
function GetBrowseObject(
    index : uint, 
    ppdispBrowseObj : Object
) : int


  • ppdispBrowseObj
    Type: System.Object%
    [out] Pointer to an IDispatch object that is used to populate the Properties window.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.


COM Signature

From vsshell80.idl:

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

This method is called on the list when the list item is selected in the tool UI. This applies to both the Class View and Object Browser tools. Many implementations, such as C++, simply reuse the CodeModel automation objects as the property browse objects.

You may return E_NOTIMPL if you don't support symbol level property browsing.

.NET Framework Security

See Also


IVsObjectList2 Interface

IVsObjectList2 Members

Microsoft.VisualStudio.Shell.Interop Namespace