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

Definition

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

Parameters

name
String String String String

The name of the event.

Returns

An object that represents the specified event, if found; otherwise, null.

Exceptions

Applies to