Share via


IVsFindSymbol.DoSearch(Guid, VSOBSEARCHCRITERIA2[]) Method

Definition

Performs the search.

public:
 int DoSearch(Guid % guidSymbolScope, cli::array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA2> ^ pobSrch);
public int DoSearch (ref Guid guidSymbolScope, Microsoft.VisualStudio.Shell.Interop.VSOBSEARCHCRITERIA2[] pobSrch);
abstract member DoSearch : Guid * Microsoft.VisualStudio.Shell.Interop.VSOBSEARCHCRITERIA2[] -> int
Public Function DoSearch (ByRef guidSymbolScope As Guid, pobSrch As VSOBSEARCHCRITERIA2()) As Integer

Parameters

guidSymbolScope
Guid

[in] A GUID specifying the search scope or the GUID of a library.

pobSrch
VSOBSEARCHCRITERIA2[]

[in] The search criteria.

Returns

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

Remarks

The Visual Studio shell displays the results in the Find Symbol Results window. No results are returned by this method.

COM Signature

From vsshell80.idl:

HRESULT IVsFindSymbol::DoSearch(  
   [in] REFGUID guidSymbolScope,   
   [in] const VSOBSEARCHCRITERIA2 *pobSrch  
);  

Notes to Callers

There are five GUIDs for specifying the search scope defined in vsshell80.idl:

GUID Name Description
GUID_VsSymbolScope_All Search all scopes for the symbol.
GUID_VsSymbolScope_OBSelectedComponents Search items selected in the Object Browser for the symbol.
GUID_VsSymbolScope_FSSelectedComponents Search items selected in the file system.
GUID_VsSymbolScope_Frameworks Search all frameworks for the symbol.
GUID_VsSymbolScope_Solution Search the solution for the symbol.

Applies to