RuntimeReflectionExtensions::GetRuntimeEvent Method (Type^, String^)
.NET Framework (current version)
Retrieves an object that represents the specified event.
Assembly: mscorlib (in mscorlib.dll)
public: [ExtensionAttribute] static EventInfo^ GetRuntimeEvent( Type^ type, String^ name )
Parameters
- type
-
Type:
System::Type^
The type that contains the event.
- name
-
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
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
Show: