次の方法で共有


ProviderConnectionPointCollection コンストラクター

定義

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

オーバーロード

ProviderConnectionPointCollection()

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

ProviderConnectionPointCollection(ICollection)

プロバイダー コネクション ポイントのコレクションを指定して、ProviderConnectionPointCollection クラスの新しいインスタンスを初期化します。

注釈

クラスの ProviderConnectionPointCollection 新しいインスタンスをコードから直接作成することはできますが、クラスが クラスから ReadOnlyCollectionBase 継承されるため、新しいコレクションは読み取り専用であり、作成後にメンバーを追加または削除することはできません。

ProviderConnectionPointCollection()

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

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

注釈

このコンストラクターは、コレクション内に ProviderConnectionPointCollection 項目がない クラスの新しいインスタンスを作成します。

こちらもご覧ください

適用対象

ProviderConnectionPointCollection(ICollection)

プロバイダー コネクション ポイントのコレクションを指定して、ProviderConnectionPointCollection クラスの新しいインスタンスを初期化します。

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

パラメーター

connectionPoints
ICollection

コレクションの作成に使用される ICollection オブジェクトの ProviderConnectionPoint

例外

connectionPointsnullです。

コレクションに null 値のコネクション ポイントが含まれています。

- または -

コレクションに ProviderConnectionPoint 型ではないオブジェクトが含まれています。

- または -

コネクション ポイントのコレクションに重複した ID が含まれています。

注釈

このコンストラクターは、 クラスの新しいインスタンスを ProviderConnectionPointCollection 作成し、 パラメーターに含まれる接続ポイントを connectionPoints 追加します。

このコンストラクターを使用すると、既存ProviderConnectionPointのオブジェクトのコレクションを作成し、そのコレクションをICollectionコンストラクターに渡すことで、プロバイダー接続ポイントの独自のコレクション オブジェクトをProviderConnectionPointCollection(ICollection)作成できます。 ただし、 コントロールは、 メソッドを含むプロバイダー接続ポイントに関連する最も一般的な操作に必要なメソッドを提供するため WebPartManager 、コントロールを拡張する場合を除き、独自のコレクションを作成する GetProviderConnectionPoints 必要はほとんどありません。

こちらもご覧ください

適用対象