RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Metódus

Definíció

Lekéri a megadott eseményt jelképező objektumot.

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

Paraméterek

type
Type

Az eseményt tartalmazó típus.

name
String

Az esemény neve.

Válaszok

Egy objektum, amely a megadott eseményt jelöli, vagy null ha az esemény nem található.

Kivételek

type az null.

-vagy-

name az null.

A következőre érvényes:

Lásd még