Dispatcher Property
Collapse the table of content
Expand the table of content

DispatcherObject.Dispatcher Property

 

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:
© 2016 Microsoft