Compartir a través de


: KeywordCollection (Clase) (Microsoft.Office.Server.Search.Administration)

Represents a collection of Keyword objects.

Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)

Sintaxis

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

Comentarios

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 Enterprise Search, see Administración de palabras clave.

Jerarquía de herencia

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

Seguridad de subprocesos

Todos los miembros estáticos públicos (compartidos en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para los subprocesos.

Vea también

Referencia

KeywordCollection (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)