Gets an EventInfo object representing the event with the specified name for the specified target.
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)
Syntax
C# |
---|
public static EventInfo GetEventInfo( Type target, string eventName ) |
Visual Basic |
---|
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
Type: EventInfoAn EventInfo object representing the event with the specified name for the specified target, if it found; otherwise, null.
Examples
C# | Copy |
---|---|
EventInfo info = VGReflectionHelper.GetEventInfo(typeof(Form1), "userControl1.button1.Click"); |