Partager via


KeywordCollection, classe (Microsoft.Office.Server.Search.Administration)

Represents a collection of Keyword objects.

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

Syntaxe

'Déclaration
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class KeywordCollection
    Implements IEnumerable
'Utilisation
Dim instance As KeywordCollection
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public sealed class KeywordCollection : IEnumerable

Remarques

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

To add a new 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.

Hiérarchie d'héritage

System.Object
  Microsoft.Office.Server.Search.Administration.KeywordCollection

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres KeywordCollection
Microsoft.Office.Server.Search.Administration, espace de noms