Compartilhar via


SearchServiceApplication.SetQuerySuggestionEnabled method

Habilita ou desabilita as sugestões de consulta para o atual SearchObjectOwner.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaração
Public Sub SetQuerySuggestionEnabled ( _
    owner As SearchObjectOwner, _
    fEnabled As Boolean _
)
'Uso
Dim instance As SearchServiceApplication
Dim owner As SearchObjectOwner
Dim fEnabled As Boolean

instance.SetQuerySuggestionEnabled(owner, _
    fEnabled)
public void SetQuerySuggestionEnabled(
    SearchObjectOwner owner,
    bool fEnabled
)

Parâmetros

  • fEnabled
    Type: System.Boolean

    true se sugestões de consulta estão ativados; Caso contrário, false.

Implements

ISearchSiteAdministrationServiceApplication.SetQuerySuggestionEnabled(SearchObjectOwner, Boolean)

Ver também

Referência

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace

IsQuerySuggestionEnabled