RuntimeReflectionExtensions.GetRuntimeEvents(Type) Metoda

Definice

Načte kolekci, která představuje všechny události definované zadaným typem.

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)

Parametry

type
Type

Typ, který obsahuje události.

Návraty

IEnumerable<EventInfo>

Kolekce událostí pro zadaný typ.

Výjimky

type je null.

Poznámky

Tato metoda vrátí všechny události definované zadaným typem, včetně zděděných, neveřejných, instancí a statických událostí.

Platí pro

Viz také