ICustomTypeDescriptor.GetEvents メソッド

定義

コンポーネントのこのインスタンスのイベントを返します。

オーバーロード

名前 説明
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

パラメーター

attributes
Attribute[]

フィルターとして使用される Attribute 型の配列。

返品

このコンポーネント インスタンスのフィルター処理されたイベントを表す EventDescriptorCollection

注釈

このインスタンスのイベントは、クラスが提供するイベントのセットとは異なる場合があります。 たとえば、コンポーネントがサイトベースの場合、サイトは追加のイベントを追加または削除できます。

attributes配列にAttributeが指定されていて、イベントにその属性のクラスのインスタンスがない場合、Attributeが既定のイベントである場合、返される配列にはイベントが含まれます。

こちらもご覧ください

適用対象