SearchServiceApplicationProxy.AddNewBestBet 方法

添加SearchAdminDatabase新的最佳匹配。 适用于: Microsoft SharePoint Server 2010 搜索功能

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

语法

声明
Public Sub AddNewBestBet ( _
    ByRef bestBet As BestBet, _
    specialTerm As Keyword, _
    order As Integer, _
    consumerGpId As String _
)
用法
Dim instance As SearchServiceApplicationProxy
Dim bestBet As BestBet
Dim specialTerm As Keyword
Dim order As Integer
Dim consumerGpId As String

instance.AddNewBestBet(bestBet, specialTerm, _
    order, consumerGpId)
public void AddNewBestBet(
    ref BestBet bestBet,
    Keyword specialTerm,
    int order,
    string consumerGpId
)

参数

  • consumerGpId
    类型:System.String

    最佳匹配使用者组的 ID。

实现

ISearchSiteAdministrationServiceApplication.AddNewBestBet(BestBet, Keyword, Int32, String)

异常

异常 条件
ArgumentException

SearchAdminDatabase中已经存在与指定的order重复bestBet

Exception

在应用程序执行期间发生错误如SearchServiceApplicationFault

备注

此方法将新创建的最佳匹配添加到SearchAdminDatabase

另请参阅

引用

SearchServiceApplicationProxy 类

SearchServiceApplicationProxy 成员

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