WebPartDescriptionCollection クラス

定義

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

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 。 コントロールに含まれるCatalogPartコントロールごとにWebPartWebPartDescriptionオブジェクトが作成されます。 このオブジェクトは、コントロールの 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)

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

(継承元 ReadOnlyCollectionBase)
ICollection.IsSynchronized

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

(継承元 ReadOnlyCollectionBase)
ICollection.SyncRoot

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

(継承元 ReadOnlyCollectionBase)

拡張メソッド

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

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

AsQueryable(IEnumerable)

IEnumerableIQueryable に変換します。

適用対象

こちらもご覧ください