Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

'Declaration
<ExtensionAttribute> _
Public NotInheritable 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, 3.5 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.

Community Additions

Show:
© 2017 Microsoft