Keywords.GetAllBestBets メソッド (Microsoft.Office.Server.Search.Administration)
Keywords クラスのこのインスタンスに関連付けられたサイトのすべてのおすすめコンテンツを取得します。
名前空間: Microsoft.Office.Server.Search.Administration
アセンブリ: Microsoft.Office.Server.Search (microsoft.office.server.search.dll 内)
構文
'宣言
Public Function GetAllBestBets As BestBetCollection
'使用
Dim instance As Keywords
Dim returnValue As BestBetCollection
returnValue = instance.GetAllBestBets
public BestBetCollection GetAllBestBets ()
戻り値
サイトのおすすめコンテンツのコレクションを表す BestBetCollection オブジェクト。
備考
特定のサイトに関連付けられたすべてのキーワードのコレクションを取得するには、Keywords クラスの AllKeywords プロパティを使用します。
コレクションにキーワードを追加するには、KeywordCollection クラスの Create メソッドを使用します。
キーワードを削除するには、Keyword クラスの Delete メソッドを使用します。
KeywordCollection クラスから 1 つのキーワードを返すには、インデクサを使用します。たとえば、コレクションが siteKeywords という名前の変数に割り当てられている場合、Microsoft Visual C# では siteKeywords[index]、または Microsoft Visual Basic では siteKeywords(index) を使用します。ここで index は、キーワードの用語を表す文字列です。
エンタープライズ検索 のキーワードとおすすめコンテンツの詳細については、「キーワードの管理」を参照してください。
関連項目
参照
Keywords クラス
Keywords メンバ
Microsoft.Office.Server.Search.Administration 名前空間