TypeInfo.GetDeclaredEvent(String) メソッド

定義

現在の型によって宣言された指定されたイベントを表す オブジェクトを返します。

public:
 virtual System::Reflection::EventInfo ^ GetDeclaredEvent(System::String ^ name);
public virtual System.Reflection.EventInfo GetDeclaredEvent (string name);
public virtual System.Reflection.EventInfo? GetDeclaredEvent (string name);
abstract member GetDeclaredEvent : string -> System.Reflection.EventInfo
override this.GetDeclaredEvent : string -> System.Reflection.EventInfo
Public Overridable Function GetDeclaredEvent (name As String) As EventInfo

パラメーター

name
String

イベントの名前です。

戻り値

見つかった場合は指定されたイベントを表すオブジェクト。それ以外の場合は null

例外

namenullです。

適用対象