Share via


Keyword.AddBestBet Method (String, String, Uri)

Adds a new best bet with a given URI and html teaser 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, _
    htmlTeaser As String, _
    uri As Uri _
) As BestBet
'Usage
Dim instance As Keyword
Dim bestBetName As String
Dim htmlTeaser As String
Dim uri As Uri
Dim returnValue As BestBet

returnValue = instance.AddBestBet(bestBetName, _
    htmlTeaser, uri)
BestBet AddBestBet(
    string bestBetName,
    string htmlTeaser,
    Uri uri
)

Parameters

  • bestBetName
    Type: System.String

    The name of the best bet to be added.

  • htmlTeaser
    Type: System.String

    A teaser, in html format, to display with the link to the best bet.

  • uri
    Type: System.Uri

    Uri to the content of the best bet

Return Value

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

Exceptions

Exception Condition
AdminException

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

See Also

Reference

Keyword Interface

Keyword Members

AddBestBet Overload

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