Export (0) Print
Expand All

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)

public static class DispatcherExtensions

  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.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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