TpsControlInvoke Method (EventHandler, Object) |
Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.
Namespace:
ABB.Robotics.Tps.Windows.Forms
Assembly:
ABB.Robotics.Tps.Windows.Forms (in ABB.Robotics.Tps.Windows.Forms.dll) Version: 6.5.129.0
Syntax public Object Invoke(
EventHandler method,
params Object[] args
)
Parameters
- method
- Type: SystemEventHandler
A delegate to a method that takes parameters of the same number and type that are contained in the args parameter. - args
- Type: SystemObject
An array of objects to pass as arguments to the specified method. This parameter can be a null reference (Nothing in Visual Basic) if the method takes no arguments.
Return Value
Type:
Object An Object that contains the return value from the delegate being invoked, or a null reference if the delegate has no return value.
Remarks This version only supports
EventHandler methods, so the args must fit these parameters; otherwise an exception will be thrown.
See Also