SearchServiceApplicationProxy.AddNewBestBet method

Adds a new Best Bet for the SearchAdminDatabase. Applies to: Microsoft SharePoint Server 2010 search

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub AddNewBestBet ( _
    ByRef bestBet As BestBet, _
    specialTerm As Keyword, _
    order As Integer, _
    consumerGpId As String _
)
'Usage
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
)

Parameters

  • consumerGpId
    Type: System.String

    The ID of the consumer group for the Best Bet.

Implements

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

Exceptions

Exception Condition
ArgumentException

A duplicate bestBet with the specified order already exists in the SearchAdminDatabase

Exception

An error, such as a SearchServiceApplicationFault, occurred during application execution.

Remarks

This method adds a newly created Best Bet to the SearchAdminDatabase.

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace