IVsObjectSearch::Find Method (UInt32, array<VSOBSEARCHCRITERIA>^, IVsObjectList^)

 

Searches for an object.

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

int Find(
	unsigned int flags,
	array<VSOBSEARCHCRITERIA>^ pobSrch,
	[OutAttribute] IVsObjectList^% pplist
)

Parameters

flags
Type: System::UInt32

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

pobSrch
Type: array<Microsoft.VisualStudio.Shell.Interop::VSOBSEARCHCRITERIA>^

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

pplist
Type: Microsoft.VisualStudio.Shell.Interop::IVsObjectList^

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

Return Value

Type: System::Int32

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

From vsshell.idl:

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