Gets the event arguments of the specified event
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 ParameterInfo GetEventArgsParameter( Type target, string eventName ) |
Visual Basic |
---|
Public Shared Function GetEventArgsParameter ( target As Type, eventName As String ) As ParameterInfo |
Parameters
- target
- Type: System..::..Type
the type of target
- eventName
- Type: System..::..String
A string containing the name of event in dotted-quad notation (e.g. fieldname.subfieldname.eventname).
Return Value
Type: ParameterInfoa ParameterInfo object representing the event argument. null (Nothing) if the eventname is null, or empty or the event does not exist or does not have argument.
Remarks
this method returns the second argument of the method Invoke of the event (this first one is the sender of the event).