IVsFindSymbol2.SetUserOptions Method

Sets search options.

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

Syntax

'Declaration
Function SetUserOptions ( _
    ByRef guidScope As Guid, _
    dwSubID As UInteger, _
    pobSrch As VSOBSEARCHCRITERIA2() _
) As Integer
int SetUserOptions(
    ref Guid guidScope,
    uint dwSubID,
    VSOBSEARCHCRITERIA2[] pobSrch
)
int SetUserOptions(
    [InAttribute] Guid% guidScope, 
    [InAttribute] unsigned int dwSubID, 
    [InAttribute] array<VSOBSEARCHCRITERIA2>^ pobSrch
)
abstract SetUserOptions : 
        guidScope:Guid byref * 
        dwSubID:uint32 * 
        pobSrch:VSOBSEARCHCRITERIA2[] -> int 
function SetUserOptions(
    guidScope : Guid, 
    dwSubID : uint, 
    pobSrch : VSOBSEARCHCRITERIA2[]
) : int

Parameters

  • guidScope
    Type: System.Guid%
    [in] A GUID specifying the search scope.
  • dwSubID
    Type: System.UInt32
    [in] Scope subID. Must be zero unless guidSymbolScope is GUID_VsSymbolScope_Frameworks.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell90.idl:

HRESULT SetUserOptions(
    [in] REFGUID guidScope, 
    [in] DWORD dwSubID, 
    [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.

.NET Framework Security

See Also

Reference

IVsFindSymbol2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace