RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Metoda

Definicja

Pobiera obiekt reprezentujący określone zdarzenie.

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

Parametry

type
Type

Typ, który zawiera zdarzenie.

name
String

Nazwa zdarzenia.

Zwraca

EventInfo

Obiekt reprezentujący określone zdarzenie lub null jeśli zdarzenie nie zostanie znalezione.

Wyjątki

type to null.

-lub-

name to null.

Dotyczy

Zobacz też