Share via


WebPartDescriptionCollection コンストラクター

定義

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

オーバーロード

WebPartDescriptionCollection()

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

WebPartDescriptionCollection(ICollection)

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

WebPartDescriptionCollection()

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

public:
 WebPartDescriptionCollection();
public WebPartDescriptionCollection ();
Public Sub New ()

注釈

コンストラクターのこのオーバーロードを WebPartDescriptionCollection 使用して、空のコレクションを作成できます。 たとえば、インポートされた説明ファイルのImportCatalogPart内容が の場合、コントロールはnullWebPartDescriptionCollectionのオブジェクトを作成します。

適用対象

WebPartDescriptionCollection(ICollection)

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

public:
 WebPartDescriptionCollection(System::Collections::ICollection ^ webPartDescriptions);
public WebPartDescriptionCollection (System.Collections.ICollection webPartDescriptions);
new System.Web.UI.WebControls.WebParts.WebPartDescriptionCollection : System.Collections.ICollection -> System.Web.UI.WebControls.WebParts.WebPartDescriptionCollection
Public Sub New (webPartDescriptions As ICollection)

パラメーター

webPartDescriptions
ICollection

カタログの WebPartDescription コントロールに対応する WebPart オブジェクトのコレクション。

例外

webPartDescriptionsnullです。

webPartDescriptions のメンバーが null です。

- または -

webPartDescriptions のメンバーが WebPartDescription 型のオブジェクトではありません。

- または -

webPartDescriptions メンバーに重複する ID プロパティがあります。

注釈

コンストラクターは WebPartDescriptionCollection(ICollection) 、オブジェクトのコレクションを GetAvailableWebPartDescriptions 作成するために、さまざまな CatalogPart コントロール内の WebPartDescription メソッド実装によって使用されます。

こちらもご覧ください

適用対象