IVsFindSymbol2::DoSearch Method (Guid, UInt32, array<VSOBSEARCHCRITERIA2>^)
Performs the search.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int DoSearch( [InAttribute] Guid% guidSymbolScope, unsigned int dwSubID, array<VSOBSEARCHCRITERIA2>^ pobSrch )
Parameters
- guidSymbolScope
-
Type:
System::Guid
[in] A GUID specifying the search scope or the GUID of a library.
- dwSubID
-
Type:
System::UInt32
[in] Scope subID. Must be zero unless guidSymbolScope is GUID_VsSymbolScope_Frameworks.
- pobSrch
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::VSOBSEARCHCRITERIA2>^
[in] Bit flags indicating search options. Constructed using values from the _VSOBSEARCHOPTIONS2 enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell90.idl:
HRESULT DoSearch(
[in] REFGUID guidSymbolScope,
[in] DWORD dwSubID,
[in] const VSOBSEARCHCRITERIA2 *pobSrch
);
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. |