RuntimeReflectionExtensions.GetRuntimeEvent Method (Type, String)

.NET Framework (current version)

Retrieves an object that represents the specified event.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

static member GetRuntimeEvent : 
        type:Type *
        name:string -> EventInfo


Type: System.Type

The type that contains the event.

Type: System.String

The name of the event.

Return Value

Type: System.Reflection.EventInfo

An object that represents the specified event, or null if the event is not found.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top