RuntimeReflectionExtensions.GetRuntimeEvents(Type) Método

Definição

Recupera uma coleção que representa todos os eventos definidos num tipo especificado.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ GetRuntimeEvents(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.EventInfo> GetRuntimeEvents(this Type type);
static member GetRuntimeEvents : Type -> seq<System.Reflection.EventInfo>
<Extension()>
Public Function GetRuntimeEvents (type As Type) As IEnumerable(Of EventInfo)

Parâmetros

type
Type

O tipo que contém os eventos.

Devoluções

Uma coleção de eventos para o tipo especificado.

Exceções

type é null.

Observações

Este método devolve todos os eventos definidos no tipo especificado, incluindo eventos herdados, não públicos, de instância e estáticos.

Aplica-se a

Ver também