SearchServiceApplication.AddSingleJudgementForQuery 方法

将单个的相关性判断添加到后端的数据库服务器。

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

语法

声明
Public Function AddSingleJudgementForQuery ( _
    searchObjectOwner As SearchObjectOwner, _
    userQuery As String, _
    Url As String, _
    LabelId As Short _
) As Integer
用法
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim userQuery As String
Dim Url As String
Dim LabelId As Short
Dim returnValue As Integer

returnValue = instance.AddSingleJudgementForQuery(searchObjectOwner, _
    userQuery, Url, LabelId)
public int AddSingleJudgementForQuery(
    SearchObjectOwner searchObjectOwner,
    string userQuery,
    string Url,
    short LabelId
)

参数

返回值

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

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

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