Dispatcher.Invoke Method
Executes a specified delegate with a specified argument.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)
Syntax
public Object Invoke (
TimeSpan timeout,
Delegate method,
Object[] args
)
Parameters
- timeout
The maximum amount of time the program will wait for the operation to finish. - method
A delegate to a method that takes multiple arguments, which is pushed onto the Dispatcher object's event queue. - args
[ParamArrayAttribute] An object to be passed as an argument to the specified method. This can be a null reference if no arguments are needed.
Return Value
The return value from the invoked delegate, or a null reference if the delegate has no return value.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
Dispatcher Class
Dispatcher Members
Microsoft.SPOT Namespace