Partager via


IVsFindSymbolEvents.OnUserOptionsChanged(Guid, VSOBSEARCHCRITERIA2[]) Method

Definition

Defines the method called when user search options change.

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

Parameters

guidSymbolScope
Guid

[in] The new scope GUID or library GUID.

pobSrch
VSOBSEARCHCRITERIA2[]

[in] The new search options. Bit flags constructed using values from the _VSOBSEARCHOPTIONS2 enumeration.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsFindSymbolEvents::OnUserOptionsChanged(  
   [in] REFGUID guidSymbolScope,   
   [in] const VSOBSEARCHCRITERIA2 *pobSrch  
);  

Notes to Implementers

There are five GUIDs for 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