Assembly: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
To add a new best bet to the collection, use the Create method of the BestBetCollection class.
To remove the association between a best bet and a keyword without deleting the best bet, use the Remove method of the BestBetCollection class.
To delete a best bet, use the Delete method of the BestBet class.
Use an indexer to return a single best bet from the BestBetCollection class. For example, assuming the collection is assigned to a variable named bestBets, use bestBets
] in Microsoft Visual C# or bestBets
) in Microsoft Visual Basic, where index is a System.Uri object representing the best bet's URL.
For more information about keywords and best bets in Enterprise Search, see Managing Keywords.