RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Method

Definition

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);
static member GetRuntimeEvent : Type * string -> System.Reflection.EventInfo

Parameters

type
Type Type Type

The type that contains the event.

name
String String String

The name of the event.

Returns

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

Exceptions

Applies to

See also