BestBetCollection クラス (Microsoft.Office.Server.Search.Administration)
BestBet オブジェクトのコレクションを表します。
名前空間: Microsoft.Office.Server.Search.Administration
アセンブリ: Microsoft.Office.Server.Search (microsoft.office.server.search.dll 内)
構文
'宣言
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class BestBetCollection
Implements IEnumerable
'使用
Dim instance As BestBetCollection
[DefaultMemberAttribute("Item")]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)]
public sealed class BestBetCollection : IEnumerable
備考
サイトのすべてのおすすめコンテンツのコレクションを取得するには、Keywords クラスの GetAllBestBets メソッドを使用します。
特定のキーワードに関連付けられたおすすめコンテンツのコレクションを取得するには、Keyword クラスの BestBets プロパティを使用します。
コレクションに新しいおすすめコンテンツを追加するには、 BestBetCollection クラスの Create メソッドを使用します。
おすすめコンテンツを削除せずにおすすめコンテンツとキーワードの関連付けを削除するには、BestBetCollection クラスの Remove メソッドを使用します。
おすすめコンテンツを削除するには、 BestBet クラスの Delete メソッドを使用します。
BestBetCollection クラスから 1 つのおすすめコンテンツを返すには、インデクサを使用します。たとえば、コレクションが bestBets という名前の変数に割り当てられている場合、Microsoft Visual C# では bestBets[
index]
、または Microsoft Visual Basic では bestBets(
index)
を使用します。ここで index は、おすすめコンテンツの URL を表す System.Uri オブジェクトです。
エンタープライズ検索 のキーワードとおすすめコンテンツの詳細については、「キーワードの管理」を参照してください。
継承階層
System.Object
Microsoft.Office.Server.Search.Administration.BestBetCollection
スレッドの安全性
この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。
関連項目
参照
BestBetCollection メンバ
Microsoft.Office.Server.Search.Administration 名前空間