Keyword クラス (Microsoft.Office.Server.Search.Administration)
エンタープライズ検索 のキーワードとおすすめコンテンツ管理システム内のキーワードを表します。
名前空間: Microsoft.Office.Server.Search.Administration
アセンブリ: Microsoft.Office.Server.Search (microsoft.office.server.search.dll 内)
構文
'宣言
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public NotInheritable Class Keyword
'使用
Dim instance As Keyword
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
public sealed class Keyword
備考
特定のサイトに関連付けられたすべてのキーワードのコレクションを取得するには、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.Keyword
スレッドの安全性
この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。
関連項目
参照
Keyword メンバ
Microsoft.Office.Server.Search.Administration 名前空間