Returns the EventInfo object representing the specified event.
[Visual Basic] Overloads Public Function GetEvent( _ ByVal name As String _ ) As EventInfo [C#] public EventInfo GetEvent( string name ); [C++] public: EventInfo* GetEvent( String* name ); [JScript] public function GetEvent( name : String ) : EventInfo;
The EventInfo object representing the specified event which is declared or inherited by the current Type, if found; otherwise, a null reference (in Visual Basic Nothing).
Exception Type | Condition |
---|---|
ArgumentNullException | name is a null reference (Nothing). |
The search for name is case-sensitive.
Type Class | Type Members | System Namespace | Type.GetEvent Overload List