Share via


Dispatcher.BeginInvoke Method

Executes a specified delegate on the thread on which a particular Dispatcher object (dispatcher) was created.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public DispatcherOperation BeginInvoke (
         Delegatemethod,
         Object[] args
)

Parameters

  • method
    A delegate to a method that takes one argument, which is pushed into the dispatcher's event queue.
  • args
    [ParamArrayAttribute] The object to be passed as an argument to the delegate.

Return Value

An object, which is returned immediately after the BeginInvoke method is called, that can be used to interact with the delegate as it is pending execution in the event queue.

Remarks

The arg parameter can be a null reference if no arguments are needed.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Dispatcher Class
Dispatcher Members
Microsoft.SPOT Namespace