DispatcherExtensions Class

DispatcherExtensions Class

.NET Framework (current version)
 

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

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

System.Object
  System.Windows.Threading.DispatcherExtensions

public static class DispatcherExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticBeginInvoke(Dispatcher, Action)

Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on.

System_CAPS_pubmethodSystem_CAPS_staticBeginInvoke(Dispatcher, Action, DispatcherPriority)

Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(Dispatcher, Action)

Executes the specified delegate synchronously with normal priority on the thread that the specified Dispatcher was created on.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(Dispatcher, Action, DispatcherPriority)

Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(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.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(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.

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
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft