RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Metodo

Definizione

Recupera un oggetto che rappresenta l’evento specificato.

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

Parametri

type
Type

Tipo che contiene l'evento.

name
String

Nome dell'evento.

Restituisce

EventInfo

Oggetto che rappresenta l'evento specificato o null se l'evento non viene trovato.

Eccezioni

type è null.

-oppure-

name è null.

Si applica a

Vedi anche