Partager via


SearchServiceApplicationProxy.AddNewBestBet Method

Adds a Best Bet for the Search administration database.

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 Search administration database.

Exception

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

Remarks

This method adds the Best Bet represented by the bestBet parameter for the keyword represented by the specialTerm parameter with the order specified by the order parameter in the consumer group specified by the consumerGpId parameter

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace