SearchServiceApplication.ImportPopularQueries 方法
导入列表中的常用查询给定的SearchObjectOwner。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function ImportPopularQueries ( _
webOwner As SearchObjectOwner, _
source As SourceRecord, _
queries As List(Of PopularQuery), _
ownerVolume As Integer _
) As Integer
用法
Dim instance As SearchServiceApplication
Dim webOwner As SearchObjectOwner
Dim source As SourceRecord
Dim queries As List(Of PopularQuery)
Dim ownerVolume As Integer
Dim returnValue As Integer
returnValue = instance.ImportPopularQueries(webOwner, _
source, queries, ownerVolume)
public int ImportPopularQueries(
SearchObjectOwner webOwner,
SourceRecord source,
List<PopularQuery> queries,
int ownerVolume
)
参数
webOwner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner搜索站点层次结构的所有者。
source
类型:Microsoft.Office.Server.Search.Administration.Query.SourceRecord这些查询以检索结果源。
queries
类型:System.Collections.Generic.List<PopularQuery>热门查询要导入的列表。
ownerVolume
类型:System.Int32若要导入的查询的数量。如果此值设置为 0 时,将清除所有以前导入的查询。
返回值
类型:System.Int32
已导入的查询总数。