Llegeix en anglès

Comparteix a través de


RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Método

Definición

Recupera un objeto que representa el evento especificado.

public static System.Reflection.EventInfo GetRuntimeEvent(this Type type, string name);
public static System.Reflection.EventInfo? GetRuntimeEvent(this Type type, string name);

Parámetros

type
Type

El tipo que contiene el evento.

name
String

Nombre del evento.

Devoluciones

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