SearchServiceApplication.AddQueryToQuerySet 方法

将单个的TuningQuery添加到一组查询。

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

语法

声明
Public Function AddQueryToQuerySet ( _
    searchObjectOwner As SearchObjectOwner, _
    QuerySetId As Integer, _
    userQuery As String _
) As Integer
用法
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim QuerySetId As Integer
Dim userQuery As String
Dim returnValue As Integer

returnValue = instance.AddQueryToQuerySet(searchObjectOwner, _
    QuerySetId, userQuery)
public int AddQueryToQuerySet(
    SearchObjectOwner searchObjectOwner,
    int QuerySetId,
    string userQuery
)

参数

返回值

类型:System.Int32
结果。0 表示成功。-1 指示错误。

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

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