Keyword.AddBestBet Method (String)

Adds a new best bet for the keyword.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

'Declaration
Function AddBestBet ( _
    bestBetName As String _
) As BestBet
'Usage
Dim instance As Keyword
Dim bestBetName As String
Dim returnValue As BestBet

returnValue = instance.AddBestBet(bestBetName)
BestBet AddBestBet(
    string bestBetName
)

Parameters

  • bestBetName
    Type: System.String

    The name of the best bet to be added.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.BestBet
A BestBet representing the added best bet.

Exceptions

Exception Condition
AdminException

if a best bet with this name for this keyword already exists.

See Also

Reference

Keyword Interface

Keyword Members

AddBestBet Overload

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace