TypeDelegator.GetEvent(String, BindingFlags) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したイベントを返します。
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。
注釈
bindingAttrが BindingFlags.IgnoreCase の場合、name パラメーターの大文字と小文字は無視されます。