RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) メソッド

定義

指定したイベントを表すオブジェクトを取得します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::EventInfo ^ GetRuntimeEvent(Type ^ type, System::String ^ name);
public static System.Reflection.EventInfo GetRuntimeEvent (this Type type, string name);
public static System.Reflection.EventInfo? GetRuntimeEvent (this Type type, string name);
static member GetRuntimeEvent : Type * string -> System.Reflection.EventInfo
<Extension()>
Public Function GetRuntimeEvent (type As Type, name As String) As EventInfo

パラメーター

type
Type

イベントを含む型。

name
String

イベントの名前です。

戻り値

指定したイベントを表すオブジェクト。イベントが見つからない場合は null

例外

typenullです。

または

namenullです。

適用対象

こちらもご覧ください