다음을 통해 공유


IVsObjectManager2.GetListAndIndex Method

Finds an IVsObjectList2 and an index of a symbol defined by IVsNavInfo.

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

Syntax

'Declaration
Function GetListAndIndex ( _
    pNavInfo As IVsNavInfo, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppList As IVsObjectList2, _
    <OutAttribute> ByRef pIndex As UInteger _
) As Integer
int GetListAndIndex(
    IVsNavInfo pNavInfo,
    uint dwFlags,
    out IVsObjectList2 ppList,
    out uint pIndex
)
int GetListAndIndex(
    [InAttribute] IVsNavInfo^ pNavInfo, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsObjectList2^% ppList, 
    [OutAttribute] unsigned int% pIndex
)
abstract GetListAndIndex : 
        pNavInfo:IVsNavInfo * 
        dwFlags:uint32 * 
        ppList:IVsObjectList2 byref * 
        pIndex:uint32 byref -> int
function GetListAndIndex(
    pNavInfo : IVsNavInfo, 
    dwFlags : uint, 
    ppList : IVsObjectList2, 
    pIndex : uint
) : int

Parameters

  • dwFlags
    Type: UInt32

    A single value or a combination of the _LIB_LISTFLAGS values. Specifies a symbol browsing tool, such as Class View or Object Browser

  • pIndex
    Type: UInt32%

    The position of the symbol in the IVsObjectList2 zero-based list.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetListAndIndex(
[in] IVsNavInfo * pNavInfo, 
[in] DWORD dwFlags, 
[out] IVsObjectList2 ** ppList, 
[out] ULONG * pIndex
);

.NET Framework Security

See Also

Reference

IVsObjectManager2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace