TypeInfo.GetDeclaredEvent(String) TypeInfo.GetDeclaredEvent(String) TypeInfo.GetDeclaredEvent(String) TypeInfo.GetDeclaredEvent(String) Method

Definición

Devuelve un objeto que representa el evento público especificado declarado por el tipo actual.Returns an object that represents the specified public event declared by the current type.

public:
 virtual System::Reflection::EventInfo ^ GetDeclaredEvent(System::String ^ name);
public virtual System.Reflection.EventInfo GetDeclaredEvent (string name);
abstract member GetDeclaredEvent : string -> System.Reflection.EventInfo
override this.GetDeclaredEvent : string -> System.Reflection.EventInfo
Public Overridable Function GetDeclaredEvent (name As String) As EventInfo

Parámetros

name
String String String String

Nombre del evento.The name of the event.

Devoluciones

Un objeto que representa el evento especificado, si se encuentra; si no, null.An object that represents the specified event, if found; otherwise, null.

Excepciones

Se aplica a