RuntimeReflectionExtensions.GetRuntimeEvents(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- type
- Type
The type that contains the events.
Returns
A collection of events for the specified type.
Exceptions
type
is null
.
Remarks
This method returns all events defined on the specified type, including inherited, non-public, instance, and static events.
Applies to
See also
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.