RuntimeReflectionExtensions.GetRuntimeEvents(Type) RuntimeReflectionExtensions.GetRuntimeEvents(Type) RuntimeReflectionExtensions.GetRuntimeEvents(Type) Method

Definition

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>
Parameters
type
Type Type Type

The type that contains the events.

Returns

A collection of events for the specified type.

Remarks

This method returns all events defined on the specified type, including inherited, non-public, instance, and static events.

Applies to