Gets an EventInfo object representing the event with the specified name for the specified target.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public static EventInfo GetEventInfo(
	Type target,
	string eventName
)
Visual Basic (Declaration)
Public Shared Function GetEventInfo ( _
	target As Type, _
	eventName As String _
) As EventInfo

Parameters

target
Type: System..::.Type
The object whose field will be returned
eventName
Type: System..::.String
A string containing the name of the event in dotted-quad notation(e.g. fieldname.subfieldname.eventname).

Return Value

An EventInfo object representing the event with the specified name for the specified target, if it found; otherwise, null.

Examples

CopyC#
EventInfo info = VGReflectionHelper.GetEventInfo(typeof(Form1), "userControl1.button1.Click");

See Also