DispatcherObject.Dispatcher Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the Dispatcher this DispatcherObject is associated with.

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

public Dispatcher Dispatcher { get; }

Property Value

Type: System.Windows.Threading.Dispatcher

The dispatcher.

Only the thread that the Dispatcher was created on may access the DispatcherObject directly. To access a DispatcherObject from a thread other than the thread the DispatcherObject was created on, call Invoke and BeginInvoke on the Dispatcher the DispatcherObject is associated with.

.NET Framework
Available since 3.0
Return to top
Show: