TypeBuilder.GetEvents メソッド

定義

現在の TypeBuilderで定義されているイベントを返します。

オーバーロード

名前 説明
GetEvents()

この型によって宣言または継承されたパブリック イベントを返します。

GetEvents(BindingFlags)

この型で宣言されているパブリック イベントと非パブリック イベントを返します。

GetEvents()

この型によって宣言または継承されたパブリック イベントを返します。

public:
 override cli::array <System::Reflection::EventInfo ^> ^ GetEvents();
public override System.Reflection.EventInfo[] GetEvents();
override this.GetEvents : unit -> System.Reflection.EventInfo[]
Public Overrides Function GetEvents () As EventInfo()

返品

この型によって宣言または継承されたパブリック イベントを表す EventInfo オブジェクトの配列を返します。 パブリック イベントがない場合は、空の配列が返されます。

例外

このメソッドは、不完全な型には実装されません。

注釈

GetTypeまたはGetTypeを使用して型を取得し、取得した型にリフレクションを使用します。

適用対象

GetEvents(BindingFlags)

この型で宣言されているパブリック イベントと非パブリック イベントを返します。

public:
 override cli::array <System::Reflection::EventInfo ^> ^ GetEvents(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr);
override this.GetEvents : System.Reflection.BindingFlags -> System.Reflection.EventInfo[]
Public Overrides Function GetEvents (bindingAttr As BindingFlags) As EventInfo()

パラメーター

bindingAttr
BindingFlags

検索を制限する BindingFlags 値のビットごとの組み合わせ。

返品

指定したバインディング フラグに一致するこの型によって宣言または継承されたイベントを表す EventInfo オブジェクトの配列を返します。 一致するイベントがない場合は、空の配列が返されます。

例外

このメソッドは、不完全な型には実装されません。

注釈

Type.GetTypeまたはAssembly.GetTypeを使用して型を取得し、取得した型にリフレクションを使用します。

適用対象