ICustomTypeDescriptor.GetEvents メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンポーネントのこのインスタンスのイベントを返します。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetEvents() |
コンポーネントのこのインスタンスのイベントを返します。 |
| GetEvents(Attribute[]) |
指定した属性配列をフィルターとして使用して、コンポーネントのこのインスタンスのイベントを返します。 |
GetEvents()
コンポーネントのこのインスタンスのイベントを返します。
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public System.ComponentModel.EventDescriptorCollection GetEvents();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents () As EventDescriptorCollection
返品
このコンポーネント インスタンスのイベントを表す EventDescriptorCollection 。
注釈
このインスタンスのイベントは、クラスが提供するイベントのセットとは異なる場合があります。 たとえば、コンポーネントがサイトベースの場合、サイトは追加のイベントを追加または削除できます。
プロパティが指定されていない場合、実装者は EventDescriptorCollection.Empty を返すことができます。 このメソッドは、 nullを返すべきではありません。
こちらもご覧ください
適用対象
GetEvents(Attribute[])
指定した属性配列をフィルターとして使用して、コンポーネントのこのインスタンスのイベントを返します。
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[] attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (attributes As Attribute()) As EventDescriptorCollection
パラメーター
返品
このコンポーネント インスタンスのフィルター処理されたイベントを表す EventDescriptorCollection 。
注釈
このインスタンスのイベントは、クラスが提供するイベントのセットとは異なる場合があります。 たとえば、コンポーネントがサイトベースの場合、サイトは追加のイベントを追加または削除できます。
attributes配列にAttributeが指定されていて、イベントにその属性のクラスのインスタンスがない場合、Attributeが既定のイベントである場合、返される配列にはイベントが含まれます。
こちらもご覧ください
- Attribute
- DefaultEventAttribute
- GetEvents
- EventDescriptorCollection
- GetProperties
- GetAttributes()
- GetDefaultEvent()