Visual Guard Class Library Documentation

VGReflectionHelper.GetEventArgsParameter Method (Type, String)

Gets the event arguments of the specified event

public static ParameterInfo GetEventArgsParameter(
   Type target,
   String eventName
);

Parameters

target
the type of target
eventName
A string containing the name of event in dotted-quad notation (e.g. fieldname.subfieldname.eventname).

Return Value

a 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).

See Also

VGReflectionHelper Class | Novalys.VisualGuard.Security Namespace | VGReflectionHelper.GetEventArgsParameter Overload List