KeywordCollection 类 (Microsoft.Office.Server.Search.Administration)

Represents a collection of Keyword objects.

命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class KeywordCollection
    Implements IEnumerable
用法
Dim instance As KeywordCollection
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public sealed class KeywordCollection : IEnumerable

备注

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 企业级搜索, see 管理关键字.

继承层次结构

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

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

KeywordCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间