TypeDelegator.GetEvent(String, BindingFlags) メソッド

定義

指定したイベントを返します。

public:
 override System::Reflection::EventInfo ^ GetEvent(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.EventInfo? GetEvent (string name, System.Reflection.BindingFlags bindingAttr);
public override System.Reflection.EventInfo GetEvent (string name, System.Reflection.BindingFlags bindingAttr);
override this.GetEvent : string * System.Reflection.BindingFlags -> System.Reflection.EventInfo
Public Overrides Function GetEvent (name As String, bindingAttr As BindingFlags) As EventInfo

パラメーター

name
String

取得するイベントの名前。

bindingAttr
BindingFlags

検索の実行方法に影響を与えるビットマスク。 この値は、BindingFlags の 0 個以上のビット フラグの組み合わせです。

戻り値

指定した名前によってこの型で宣言または継承されているイベントを表す EventInfo オブジェクト。 このメソッドは、イベントが見つからない場合に null を返します。

例外

name パラメーターが null です。

注釈

が の場合bindingAttr、 パラメーターの大文字とname小文字は無視IgnoreCaseされます。BindingFlags

適用対象