RuntimeReflectionExtensions.GetRuntimeEvents(Type) Metodo
Definizione
Recupera una raccolta che rappresenta tutti gli eventi definiti in un tipo specificato.Retrieves a collection that represents all the events defined on a specified type.
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)
Parametri
- type
- Type
Tipo che contiene gli eventi.The type that contains the events.
Restituisce
Raccolta di eventi per il tipo specificato.A collection of events for the specified type.
Eccezioni
type
è null
.type
is null
.
Commenti
Questo metodo restituisce tutti gli eventi definiti nel tipo specificato, inclusi gli eventi ereditati, non pubblici, di istanza e statici.This method returns all events defined on the specified type, including inherited, non-public, instance, and static events.