次の方法で共有


EventDescriptorCollection コンストラクター

定義

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

オーバーロード

名前 説明
EventDescriptorCollection(EventDescriptor[])

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

EventDescriptorCollection(EventDescriptor[], Boolean)

EventDescriptor オブジェクトの指定された配列を使用して、EventDescriptorCollection クラスの新しいインスタンスを初期化します。 必要に応じて、コレクションは読み取り専用です。

EventDescriptorCollection(EventDescriptor[])

ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs

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

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 型の配列。

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

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

注釈

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

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

こちらもご覧ください

適用対象

EventDescriptorCollection(EventDescriptor[], Boolean)

ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs

EventDescriptor オブジェクトの指定された配列を使用して、EventDescriptorCollection クラスの新しいインスタンスを初期化します。 必要に応じて、コレクションは読み取り専用です。

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

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

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

注釈

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

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

こちらもご覧ください

適用対象