Share via


SearchServiceApplicationProxy.GetBestBet Method

Gets a Best Bet for the specified URL and keyword consumer group.

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

Syntax

'Declaration
Public Function GetBestBet ( _
    url As Uri, _
    consumerGpId As String _
) As BestBet
'Usage
Dim instance As SearchServiceApplicationProxy
Dim url As Uri
Dim consumerGpId As String
Dim returnValue As BestBet

returnValue = instance.GetBestBet(url, _
    consumerGpId)
public BestBet GetBestBet(
    Uri url,
    string consumerGpId
)

Parameters

  • consumerGpId
    Type: System.String

    The ID of the keyword consumer group.

Return Value

Type: Microsoft.Office.Server.Search.Administration.BestBet
A Best Bet for the keyword.

Implements

ISearchSiteAdministrationServiceApplication.GetBestBet(Uri, String)

Exceptions

Exception Condition
ArgumentException

The Best Bet with the specified properties cannot be found in the Search administration database.

Exception

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

Remarks

The value of the url parameter must not be null .

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace