Keyword class

Represents a keyword in the SharePoint Enterprise Search keyword and best bet management system.

Inheritance hierarchy

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

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<DataContractAttribute> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class Keyword
'Usage
Dim instance As Keyword
[DataContractAttribute]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class Keyword

Remarks

Use the AllKeywords property of the Keywords class to get the collection of all the 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 SharePoint Enterprise Search, see Managing Keywords.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

Keyword members

Microsoft.Office.Server.Search.Administration namespace