SearchServiceApplicationProxy.GetBestBetForSpecialTerm Method
Retrieves the information about a Best Bet for the specified URL, keyword, 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 GetBestBetForSpecialTerm ( _
url As Uri, _
parentSpecialTerm As Keyword, _
consumerGpId As String _
) As BestBet
'Usage
Dim instance As SearchServiceApplicationProxy
Dim url As Uri
Dim parentSpecialTerm As Keyword
Dim consumerGpId As String
Dim returnValue As BestBet
returnValue = instance.GetBestBetForSpecialTerm(url, _
parentSpecialTerm, consumerGpId)
public BestBet GetBestBetForSpecialTerm(
Uri url,
Keyword parentSpecialTerm,
string consumerGpId
)
Parameters
url
Type: System.UriThe URL of the Best Bet.
parentSpecialTerm
Type: Microsoft.Office.Server.Search.Administration.KeywordThe specified keyword.
consumerGpId
Type: System.StringThe ID of the keyword consumer group.
Return Value
Type: Microsoft.Office.Server.Search.Administration.BestBet
A Best Bet for the Search keyword.
Implements
ISearchSiteAdministrationServiceApplication.GetBestBetForSpecialTerm(Uri, Keyword, 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 .
The value of the parentSpecialTerm parameter must not be null .
See Also
Reference
SearchServiceApplicationProxy Class