RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) Método

Definição

Recupera um objeto que representa o evento especificado.

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

Parâmetros

type
Type

O tipo que contém o evento.

name
String

O nome do evento.

Retornos

EventInfo

Um objeto que representa o evento especificado ou null, se o evento não for encontrado.

Exceções

type é null.

- ou -

name é null.

Aplica-se a

Confira também