IVsLibraryReferenceManager.GetListIndex Method

Provides browse information for the Object Browser.

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

Syntax

'宣言
Function GetListIndex ( _
    pObjInfo As VSOBJECTINFO(), _
    <OutAttribute> ByRef pplist As IVsObjectList, _
    <OutAttribute> ByRef pIndex As UInteger _
) As Integer
'使用
Dim instance As IVsLibraryReferenceManager
Dim pObjInfo As VSOBJECTINFO()
Dim pplist As IVsObjectList
Dim pIndex As UInteger
Dim returnValue As Integer

returnValue = instance.GetListIndex(pObjInfo, _
    pplist, pIndex)
int GetListIndex(
    VSOBJECTINFO[] pObjInfo,
    out IVsObjectList pplist,
    out uint pIndex
)
int GetListIndex(
    [InAttribute] array<VSOBJECTINFO>^ pObjInfo, 
    [OutAttribute] IVsObjectList^% pplist, 
    [OutAttribute] unsigned int% pIndex
)
function GetListIndex(
    pObjInfo : VSOBJECTINFO[], 
    pplist : IVsObjectList, 
    pIndex : uint
) : int

Parameters

  • pObjInfo
    Type: []

    [in] A pointer to an object of type VSOBJECTINFO.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsLibraryReferenceManager::GetListIndex(
   [in] VSOBJECTINFO *pobjInfo, 
   [out] IVsObjectList** ppList, 
   [out] ULONG *pIndex
);

Permissions

See Also

Reference

IVsLibraryReferenceManager Interface

IVsLibraryReferenceManager Members

Microsoft.VisualStudio.Shell.Interop Namespace