共用方式為


IVsObjectSearch.Find(UInt32, VSOBSEARCHCRITERIA[], IVsObjectList) Method

Definition

Searches for an object.

public:
 int Find(System::UInt32 flags, cli::array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA> ^ pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList ^ % pplist);
public:
 int Find(unsigned int flags, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA> ^ pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList ^ &  pplist);
int Find(unsigned int flags, std::Array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA> const & pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList const & & pplist);
public int Find (uint flags, Microsoft.VisualStudio.Shell.Interop.VSOBSEARCHCRITERIA[] pobSrch, out Microsoft.VisualStudio.Shell.Interop.IVsObjectList pplist);
abstract member Find : uint32 * Microsoft.VisualStudio.Shell.Interop.VSOBSEARCHCRITERIA[] * IVsObjectList -> int
Public Function Find (flags As UInteger, pobSrch As VSOBSEARCHCRITERIA(), ByRef pplist As IVsObjectList) As Integer

Parameters

flags
UInt32

[in] Bit flags determining how to display the results. Constructed using values from the __VSOBSEARCHFLAGS enumeration.

pobSrch
VSOBSEARCHCRITERIA[]

[in] Pointer to a VSOBSEARCHCRITERIA structure defining the name and other elements of the search.

pplist
IVsObjectList

[out] Pointer to an IVsObjectList interface providing access to the objects meeting the search criteria.

Returns

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

Remarks

COM Signature

From vsshell.idl:

 HRESULT IVsObjectSearch::Find(  
   [in] VSOBSEARCHFLAGS flags,   
   [in] const VSOBSEARCHCRITERIA *pobSrch,   
   [out,retval] IVsObjectList **ppList  
);  

Applies to