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
)
参数
owner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner搜索站点层次结构的所有者。
fEnabled
类型:System.Booleantrue如果启用了查询的建议 ;否则为false。
实现
ISearchSiteAdministrationServiceApplication.SetQuerySuggestionEnabled(SearchObjectOwner, Boolean)
另请参阅
引用
Microsoft.Office.Server.Search.Administration 命名空间
IsQuerySuggestionEnabled