Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a new best bet with a given URI 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, _
uri As Uri _
) As BestBet
'Usage
Dim instance As Keyword
Dim bestBetName As String
Dim uri As Uri
Dim returnValue As BestBet
returnValue = instance.AddBestBet(bestBetName, _
uri)
BestBet AddBestBet(
string bestBetName,
Uri uri
)
Parameters
bestBetName
Type: System.StringThe name of the best bet to be added.
uri
Type: System.Uri[Uri] for 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 bet with this name for this keyword already exists |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace