Compartilhar via


IVsObjectManager2.GetListAndIndex Method

Definition

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

public:
 int GetListAndIndex(Microsoft::VisualStudio::Shell::Interop::IVsNavInfo ^ pNavInfo, System::UInt32 dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList2 ^ % ppList, [Runtime::InteropServices::Out] System::UInt32 % pIndex);
int GetListAndIndex(Microsoft::VisualStudio::Shell::Interop::IVsNavInfo const & pNavInfo, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList2 const & & ppList, [Runtime::InteropServices::Out] unsigned int & pIndex);
public int GetListAndIndex (Microsoft.VisualStudio.Shell.Interop.IVsNavInfo pNavInfo, uint dwFlags, out Microsoft.VisualStudio.Shell.Interop.IVsObjectList2 ppList, out uint pIndex);
abstract member GetListAndIndex : Microsoft.VisualStudio.Shell.Interop.IVsNavInfo * uint32 * IVsObjectList2 * uint32 -> int
Public Function GetListAndIndex (pNavInfo As IVsNavInfo, dwFlags As UInteger, ByRef ppList As IVsObjectList2, ByRef pIndex As UInteger) As Integer

Parameters

pNavInfo
IVsNavInfo

The IVsNavInfo that identifies a symbol in the hierarchical tree of symbols.

dwFlags
UInt32

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

ppList
IVsObjectList2

The IVsObjectList2 that provides information about the symbol.

pIndex
UInt32

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

Returns

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  
);  

Applies to