This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
.NET Framework Class Library
DispatcherObject..::.Dispatcher Property
Updated: November 2007
Namespace:
System.Windows.Threading Assembly:
WindowsBase (in WindowsBase.dll)

Syntax
Visual Basic (Declaration) |
Public ReadOnly Property Dispatcher As Dispatcher
|
|
Dim instance As DispatcherObject
Dim value As Dispatcher
value = instance.Dispatcher
|
|
public Dispatcher Dispatcher { get; }
|
|
public:
property Dispatcher^ Dispatcher {
Dispatcher^ get ();
}
|
|
/** @property */
public Dispatcher get_Dispatcher()
|
|
public function get Dispatcher () : Dispatcher
|
|
You cannot set this property in XAML.
|

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 Vista
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