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);
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

注釈

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

適用対象