Invoke(Delegate,Object[]) Method (WinFormsSynchronizationProvider)
Executes a delegate on the thread that owns the control's underlying window handle.
'Declaration
Public Overrides Function Invoke( _
ByVal As System.Delegate, _
ByVal ParamArray () As System.Object _
) As System.Object
public override System.Object Invoke(
System.Delegate ,
params System.Object[]
)
public: System.Object Invoke(
System.Delegate* ,
params System.Object[]*
); override
public:
System.Object Invoke(
System.Delegate^ ,
... array<System.Object>^
); override
Parameters
- method
- The method.
- args
- The arguments.
Return Value
An System.Object that contains the return value from the delegate being invoked, or null if the delegate has no return value.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5