Share via


Keywords.GetAllBestBets, méthode (Microsoft.Office.Server.Search.Administration)

Gets all the best bets for the site associated with this instance of the Keywords class.

Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)

Syntaxe

'Déclaration
Public Function GetAllBestBets As BestBetCollection
'Utilisation
Dim instance As Keywords
Dim returnValue As BestBetCollection

returnValue = instance.GetAllBestBets
public BestBetCollection GetAllBestBets ()

Valeur de retour

A BestBetCollection object representing the site's collection of best bets.

Remarques

Use the AllKeywords property of the Keywords class to get the collection of all keywords associated with a specific site.

To add a keyword to the collection, use the Create method of the KeywordCollection class.

To delete a keyword, use the Delete method of the Keyword class.

Use an indexer to return a single keyword from the KeywordCollection class. For example, assuming the collection is assigned to a variable named siteKeywords, use siteKeywords[index] in Microsoft Visual C# or siteKeywords(index) in Microsoft Visual Basic, where index is a string representing the keyword term.

For more information about keywords and best bets in Recherche de contenu d'entreprise, see Gestion des mots clés.

Voir aussi

Référence

Keywords, classe
Membres Keywords
Microsoft.Office.Server.Search.Administration, espace de noms