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
'Declaración
Function GetListAndIndex ( _
pNavInfo As IVsNavInfo, _
dwFlags As UInteger, _
<OutAttribute> ByRef ppList As IVsObjectList2, _
<OutAttribute> ByRef pIndex As UInteger _
) As Integer
'Uso
Dim instance As IVsObjectManager2
Dim pNavInfo As IVsNavInfo
Dim dwFlags As UInteger
Dim ppList As IVsObjectList2
Dim pIndex As UInteger
Dim returnValue As Integer
returnValue = instance.GetListAndIndex(pNavInfo, _
dwFlags, ppList, pIndex)
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
- pNavInfo
Type: Microsoft.VisualStudio.Shell.Interop.IVsNavInfo
The IVsNavInfo that identifies a symbol in the hierarchical tree of symbols.
- dwFlags
Type: System.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
Type: Microsoft.VisualStudio.Shell.Interop.IVsObjectList2%
The IVsObjectList2 that provides information about the symbol.
- pIndex
Type: System.UInt32%
The position of the symbol in the IVsObjectList2 zero-based list.
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 vsshell80.idl:
HRESULT GetListAndIndex(
[in] IVsNavInfo * pNavInfo,
[in] DWORD dwFlags,
[out] IVsObjectList2 ** ppList,
[out] ULONG * pIndex
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.