IVsLibrary2.GetList2 Method

Definition

Returns the requested list of symbols as an IVsObjectList interface.

C++/WinRT
int GetList2(unsigned int ListType, unsigned int flags, std::Array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA2> const & pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList2 const & & ppIVsObjectList2);

Parameters

ListType
UInt32

[in] Specifies list type. Values are taken from the _LIB_LISTTYPE2 enumeration.

flags
UInt32

[in] Specifies flags. Values are taken from the _LIB_LISTFLAGS enumeration.

pobSrch
VSOBSEARCHCRITERIA2[]

[in] Specifies a pointer to a VSOBSEARCHCRITERIA2 structure.

ppIVsObjectList2
IVsObjectList2

[out] Pointer to an IVsObjectList interface.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

cpp#
HRESULT IVsLibrary2::GetList2(  
   [in] LIB_LISTTYPE2 ListType,   
   [in] LIB_LISTFLAGS Flags,   
   [in] VSOBSEARCHCRITERIA2 *pobSrch,   
   [out, retval] IVsObjectList2 **ppIVsObjectList2  
);  

This method returns an IVsObjectList interface. The type of object list to return is specified in ListType with values from the _LIB_LISTTYPE2 enumeration. Attributes of the object list are specified in flags with values from the _LIB_LISTFLAGS enumeration. Members of the VSOBSEARCHCRITERIA2 structure, as given in the ppList parameter, specify the criteria for finding the object list.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022