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 (
TimeSpantimeout,
Delegatemethod,
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 .NET Micro Framework version 2.0, 2.5
See Also
Reference
Dispatcher Class
Dispatcher Members
Microsoft.SPOT Namespace