GetRuntimeEvent Method

RuntimeReflectionExtensions.GetRuntimeEvent Method (Type, String)

.NET Framework 4.6 and 4.5

Retrieves an object that represents the specified event.

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

public static EventInfo GetRuntimeEvent(
	this Type type,
	string name


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 4.5
.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
© 2015 Microsoft