EventDescriptorCollection コンストラクター

定義

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

オーバーロード

EventDescriptorCollection(EventDescriptor[])

EventDescriptorCollection オブジェクトの配列を指定して、EventDescriptor クラスの新しいインスタンスを初期化します。

EventDescriptorCollection(EventDescriptor[], Boolean)

EventDescriptorCollection オブジェクトの配列を指定して、EventDescriptor クラスの新しいインスタンスを初期化します。 このコレクションは、オプションで読み取り専用にできます。

EventDescriptorCollection(EventDescriptor[])

EventDescriptorCollection オブジェクトの配列を指定して、EventDescriptor クラスの新しいインスタンスを初期化します。

public:
 EventDescriptorCollection(cli::array <System::ComponentModel::EventDescriptor ^> ^ events);
public EventDescriptorCollection (System.ComponentModel.EventDescriptor[] events);
public EventDescriptorCollection (System.ComponentModel.EventDescriptor[]? events);
new System.ComponentModel.EventDescriptorCollection : System.ComponentModel.EventDescriptor[] -> System.ComponentModel.EventDescriptorCollection
Public Sub New (events As EventDescriptor())

パラメーター

events
EventDescriptor[]

コレクションにイベントを提供する、EventDescriptor 型の配列。

次のコード例では、イベントを使用して新しい EventDescriptorCollection クラスを作成します button1。 フォームでインスタンス化されている必要 button1 があります。

EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
EventDescriptorCollection events = TypeDescriptor.GetEvents(button1);
Dim events As EventDescriptorCollection = TypeDescriptor.GetEvents(button1)

注釈

パラメーターが空の events 場合、このコンストラクターは空 EventDescriptorCollection のクラスを作成します。

HostProtectionAttributeこのメンバーに適用される属性には、次Resourcesのプロパティ値がありますSynchronizationHostProtectionAttribute は、デスクトップ アプリケーション (通常、アイコンのダブルクリック、コマンドの入力、またはブラウザーへの URL の入力により起動されます) には影響しません。 詳細については、クラスまたはプログラミング属性とホスト保護属性SQL Serverを参照してくださいHostProtectionAttribute

こちらもご覧ください

適用対象

EventDescriptorCollection(EventDescriptor[], Boolean)

EventDescriptorCollection オブジェクトの配列を指定して、EventDescriptor クラスの新しいインスタンスを初期化します。 このコレクションは、オプションで読み取り専用にできます。

public:
 EventDescriptorCollection(cli::array <System::ComponentModel::EventDescriptor ^> ^ events, bool readOnly);
public EventDescriptorCollection (System.ComponentModel.EventDescriptor[] events, bool readOnly);
public EventDescriptorCollection (System.ComponentModel.EventDescriptor[]? events, bool readOnly);
new System.ComponentModel.EventDescriptorCollection : System.ComponentModel.EventDescriptor[] * bool -> System.ComponentModel.EventDescriptorCollection
Public Sub New (events As EventDescriptor(), readOnly As Boolean)

パラメーター

events
EventDescriptor[]

コレクションにイベントを提供する、EventDescriptor 型の配列。

readOnly
Boolean

コレクションを読み取り専用に指定する場合は true。それ以外の場合は false

次のコード例では、イベントを使用して新しい EventDescriptorCollection クラスを作成します button1。 フォームでインスタンス化されている必要 button1 があります。

EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
EventDescriptorCollection events = TypeDescriptor.GetEvents(button1);
Dim events As EventDescriptorCollection = TypeDescriptor.GetEvents(button1)

注釈

パラメーターが空の events 場合、このコンストラクターは空 EventDescriptorCollection のクラスを作成します。

注意

HostProtectionAttributeこのクラスに適用される属性には、次Resourcesのプロパティ値がありますSynchronizationHostProtectionAttribute は、デスクトップ アプリケーション (通常、アイコンのダブルクリック、コマンドの入力、またはブラウザーへの URL の入力により起動されます) には影響しません。 詳細については、クラスまたはプログラミング属性とホスト保護属性SQL Serverを参照してくださいHostProtectionAttribute

こちらもご覧ください

適用対象