다음을 통해 공유


IVsGlobalSearch.SetProviderEnabled Method

Enables or disables the specified search provider.

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

Syntax

'Declaration
Sub SetProviderEnabled ( _
    guidCategoryId As Guid, _
    fEnabled As Boolean _
)
void SetProviderEnabled(
    Guid guidCategoryId,
    bool fEnabled
)
void SetProviderEnabled(
    [InAttribute] Guid guidCategoryId, 
    [InAttribute] bool fEnabled
)
abstract SetProviderEnabled : 
        guidCategoryId:Guid * 
        fEnabled:bool -> unit
function SetProviderEnabled(
    guidCategoryId : Guid, 
    fEnabled : boolean
)

Parameters

  • guidCategoryId
    Type: Guid

    [in] GUID that identifies the category of the search provider.

  • fEnabled
    Type: Boolean

    Specifies whether the search provider is to be enabled or disabled. If true, the search provider is enabled. If false, the search provider is disabled.

.NET Framework Security

See Also

Reference

IVsGlobalSearch Interface

Microsoft.VisualStudio.Shell.Interop Namespace