KeywordCollection クラス (Microsoft.Office.Server.Search.Administration)

Keyword オブジェクトのコレクションを表します。

名前空間: 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

備考

特定のサイトに関連付けられたすべてのキーワードのコレクションを取得するには、Keywords クラスの AllKeywords プロパティを使用します。

コレクションに新しいキーワードを追加するには、KeywordCollection クラスの Create メソッドを使用します。

キーワードを削除するには、Keyword クラスの Delete メソッドを使用します。

KeywordCollection クラスから 1 つのキーワードを返すには、インデクサを使用します。たとえば、コレクションが siteKeywords という名前の変数に割り当てられている場合、Microsoft Visual C# では siteKeywords[index]、または Microsoft Visual Basic では siteKeywords(index) を使用します。ここで index は、キーワードの用語を表す文字列です。

エンタープライズ検索 のキーワードとおすすめコンテンツの詳細については、「キーワードの管理」を参照してください。

継承階層

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

スレッドの安全性

この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。

関連項目

参照

KeywordCollection メンバ
Microsoft.Office.Server.Search.Administration 名前空間