WebPartDescriptionCollection クラス

定義

WebPartDescription コントロールのカタログで使用するWebPart オブジェクトのコレクションで構成されます。 このクラスは継承できません。

public ref class WebPartDescriptionCollection sealed : System::Collections::ReadOnlyCollectionBase
public sealed class WebPartDescriptionCollection : System.Collections.ReadOnlyCollectionBase
type WebPartDescriptionCollection = class
    inherit ReadOnlyCollectionBase
Public NotInheritable Class WebPartDescriptionCollection
Inherits ReadOnlyCollectionBase
継承
WebPartDescriptionCollection

注釈

WebPartDescriptionCollection クラスは、CatalogPart メソッドの実装のさまざまなGetAvailableWebPartDescriptions コントロールによって作成されます。 WebPart コントロールに含まれる各CatalogPart コントロールに対して、WebPartDescription オブジェクトが作成されます。 このオブジェクトは、ID、タイトル、説明、関連付けられたアイコンへのパスなど、 WebPart コントロールに関する基本情報を保持します。 さまざまなCatalogPart コントロールでは、WebPartDescription オブジェクトを使用して、WebPart コントロール自体のインスタンスを作成しなくても、WebPart コントロールの情報をカタログに表示できます。

WebPartDescriptionCollection クラスは、カタログで使用されるすべてのWebPartDescription オブジェクトのコレクションを維持するために、Web パーツ コントロール セットによって内部的に使用されます。 WebPartDescriptionCollection コレクションは、ページがカタログ表示モードの場合にのみ使用されます。 CatalogPart コントロールがレンダリングされるときに、WebPartDescriptionCollection コレクションをループ処理し、各WebPartDescription オブジェクトの情報を表示されたカタログに追加します。

コンストラクター

名前 説明
WebPartDescriptionCollection()

WebPartDescriptionCollection クラスの空の新しいインスタンスを初期化します。

WebPartDescriptionCollection(ICollection)

WebPartDescriptionCollection オブジェクトのICollection コレクションを渡して、WebPartDescription オブジェクトの新しいインスタンスを初期化します。

プロパティ

名前 説明
Count

ReadOnlyCollectionBase インスタンスに含まれる要素の数を取得します。

(継承元 ReadOnlyCollectionBase)
InnerList

ReadOnlyCollectionBase インスタンスに含まれる要素の一覧を取得します。

(継承元 ReadOnlyCollectionBase)
Item[Int32]

コレクション内のインデックスに基づいてコレクションのメンバーを取得します。

Item[String]

一意の文字列識別子に基づいてコレクションのメンバーを取得します。

メソッド

名前 説明
Contains(WebPartDescription)

コレクション内に特定のコントロールが存在するかどうかを示す値を返します。

CopyTo(WebPartDescription[], Int32)

コレクションを WebPartDescription オブジェクトの配列にコピーします。

Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetEnumerator()

ReadOnlyCollectionBase インスタンスを反復処理する列挙子を返します。

(継承元 ReadOnlyCollectionBase)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IndexOf(WebPartDescription)

コレクションの特定のメンバーの位置を返します。

MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

名前 説明
ICollection.CopyTo(Array, Int32)

ターゲット配列の指定したインデックスから始まる互換性のある 1 次元ReadOnlyCollectionBaseに、Array全体をコピーします。

(継承元 ReadOnlyCollectionBase)
ICollection.IsSynchronized

ReadOnlyCollectionBase オブジェクトへのアクセスが同期されているかどうかを示す値を取得します (スレッド セーフ)。

(継承元 ReadOnlyCollectionBase)
ICollection.SyncRoot

ReadOnlyCollectionBase オブジェクトへのアクセスを同期するために使用できるオブジェクトを取得します。

(継承元 ReadOnlyCollectionBase)

拡張メソッド

名前 説明
AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryableに変換します。

Cast<TResult>(IEnumerable)

IEnumerable の要素を指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定した型に基づいて、IEnumerable の要素をフィルター処理します。

適用対象

こちらもご覧ください