DispatcherExtensions Class

Provides a set of static methods that extend the Dispatcher class.

System.Object
  System.Windows.Threading.DispatcherExtensions

Namespace:  System.Windows.Threading
Assembly:  System.Windows.Presentation (in System.Windows.Presentation.dll)

[<AbstractClass>]
[<Sealed>]
type DispatcherExtensions =  class end

  NameDescription
Public methodStatic memberBeginInvoke(Dispatcher, Action)Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on.
Public methodStatic memberBeginInvoke(Dispatcher, Action, DispatcherPriority)Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on.
Public methodStatic memberInvoke(Dispatcher, Action)Executes the specified delegate synchronously with normal priority on the thread that the specified Dispatcher was created on.
Public methodStatic memberInvoke(Dispatcher, Action, TimeSpan)Executes the specified delegate synchronously on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period.
Public methodStatic memberInvoke(Dispatcher, Action, DispatcherPriority)Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on.
Public methodStatic memberInvoke(Dispatcher, Action, TimeSpan, DispatcherPriority)Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period.
Top

The methods in this class are defined as extension methods that extend the Dispatcher class. This means that they can be called like an instance method on any Dispatcher object.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft