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

The name of the event.

Returns

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

Exceptions

name is null.

Applies to