SearchServiceApplication.SetQuerySuggestionEnabled 方法

启用或禁用当前的SearchObjectOwner的查询建议。

命名空间:  Microsoft.Office.Server.Search.Administration
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Sub SetQuerySuggestionEnabled ( _
    owner As SearchObjectOwner, _
    fEnabled As Boolean _
)
用法
Dim instance As SearchServiceApplication
Dim owner As SearchObjectOwner
Dim fEnabled As Boolean

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

参数

  • fEnabled
    类型:System.Boolean

    true如果启用了查询的建议 ;否则为false。

实现

ISearchSiteAdministrationServiceApplication.SetQuerySuggestionEnabled(SearchObjectOwner, Boolean)

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

Microsoft.Office.Server.Search.Administration 命名空间

IsQuerySuggestionEnabled