CustomTypeDescriptor.GetEvents メソッド

定義

この型記述子によって表されるオブジェクトのイベント記述子のコレクションを返します。

オーバーロード

名前 説明
GetEvents()

この型記述子によって表されるオブジェクトのイベント記述子のコレクションを返します。

GetEvents(Attribute[])

この型記述子で表されるオブジェクトのイベント記述子のフィルター処理されたコレクションを返します。

注釈

GetEvents メソッドは、この型記述子が表すオブジェクトのイベント記述子のコレクションを返します。 返されるコレクションをフィルター処理するために、省略可能な属性配列を指定できます。 親が指定されていない場合、メソッドは Emptyを返します。

GetEvents()

この型記述子によって表されるオブジェクトのイベント記述子のコレクションを返します。

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public virtual System.ComponentModel.EventDescriptorCollection GetEvents();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents () As EventDescriptorCollection

返品

この型記述子で表されるオブジェクトのイベント記述子を格納している EventDescriptorCollection 。 既定値は Empty です。

実装

注釈

親カスタム型記述子が CustomTypeDescriptor コンストラクターに渡された場合、 GetEvents メソッドは親の対応するメソッドを呼び出します。

こちらもご覧ください

適用対象

GetEvents(Attribute[])

この型記述子で表されるオブジェクトのイベント記述子のフィルター処理されたコレクションを返します。

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[] attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents (attributes As Attribute()) As EventDescriptorCollection

パラメーター

attributes
Attribute[]

フィルターとして使用する属性の配列。 これは null でもかまいません。

返品

この型記述子によって表されるオブジェクトのイベントの説明を含む EventDescriptorCollection 。 既定値は Empty です。

実装

注釈

attributes パラメーターを使用して、返されるコレクションをフィルター処理できます。

親カスタム型記述子が CustomTypeDescriptor コンストラクターに渡された場合、 GetEvents メソッドは親の対応するメソッドを呼び出します。

こちらもご覧ください

適用対象