RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Method (System.Reflection) (original) (raw)
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 an object that represents the specified event.
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::EventInfo ^ GetRuntimeEvent(Type ^ type, System::String ^ name);public static System.Reflection.EventInfo GetRuntimeEvent(this Type type, string name);public static System.Reflection.EventInfo? GetRuntimeEvent(this Type type, string name);static member GetRuntimeEvent : Type * string -> System.Reflection.EventInfo<Extension()>
Public Function GetRuntimeEvent (type As Type, name As String) As EventInfoParameters
type
The type that contains the event.
name
The name of the event.
Returns
An object that represents the specified event, or null if the event is not found.
Exceptions
type is null.
-or-
name is null.
Applies to
See also
Feedback
Was this page helpful?
No
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?