RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Yöntem

Tanım

Belirtilen olayı temsil eden bir nesne alır.

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 EventInfo

Parametreler

type
Type

Olayı içeren tür.

name
String

Olayın adı.

Döndürülenler

EventInfo

Belirtilen olayı temsil eden veya null olay bulunamazsa bir nesne.

Özel durumlar

type, null değeridir.

-veya-

name, null değeridir.

Şunlara uygulanır

Ayrıca bkz.