EventDescriptorCollection コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
EventDescriptorCollection クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| EventDescriptorCollection(EventDescriptor[]) |
EventDescriptor オブジェクトの指定された配列を使用して、EventDescriptorCollection クラスの新しいインスタンスを初期化します。 |
| EventDescriptorCollection(EventDescriptor[], Boolean) |
EventDescriptor オブジェクトの指定された配列を使用して、EventDescriptorCollection クラスの新しいインスタンスを初期化します。 必要に応じて、コレクションは読み取り専用です。 |
EventDescriptorCollection(EventDescriptor[])
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 プロパティ値があります: Synchronization。 HostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。
こちらもご覧ください
適用対象
EventDescriptorCollection(EventDescriptor[], Boolean)
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 プロパティ値があります: Synchronization。 HostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。