RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Método

Definición

Recupera un objeto que representa el evento especificado.

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

Parámetros

type
Type

El tipo que contiene el evento.

name
String

Nombre del evento.

Devoluciones

EventInfo

Objeto que representa el evento especificado o null si no se encuentra el evento.

Excepciones

type es null.

O bien

name es null.

Se aplica a

Consulte también