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
)

参数

  • ownerVolume
    类型:System.Int32

    若要导入的查询的数量。如果此值设置为 0 时,将清除所有以前导入的查询。

返回值

类型:System.Int32
已导入的查询总数。

实现

ISearchSiteAdministrationServiceApplication.ImportPopularQueries(SearchObjectOwner, SourceRecord, List<PopularQuery>, Int32)

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

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