.NET Framework Class Library
DispatcherObject..::.Dispatcher Property

Gets the Dispatcher this DispatcherObject is associated with.

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

Visual Basic (Declaration)
Public ReadOnly Property Dispatcher As Dispatcher
Visual Basic (Usage)
Dim instance As DispatcherObject
Dim value As Dispatcher

value = instance.Dispatcher
C#
public Dispatcher Dispatcher { get; }
Visual C++
public:
property Dispatcher^ Dispatcher {
    Dispatcher^ get ();
}
JScript
public function get Dispatcher () : Dispatcher
XAML
You cannot set this property in XAML.

Property Value

Type: System.Windows.Threading..::.Dispatcher
The dispatcher.
Remarks

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.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

Other Resources

Tags :


Page view tracker