DispatcherObject Class
Represents an object that is associated with a Dispatcher.
Assembly: WindowsBase (in WindowsBase.dll)
System.Windows.Threading.DispatcherObject
System.Windows.Annotations.AnnotationService
System.Windows.Application
System.Windows.Automation.Peers.AutomationPeer
System.Windows.Data.CollectionView
System.Windows.DependencyObject
System.Windows.FrameworkTemplate
System.Windows.Input.InputDevice
System.Windows.Input.InputLanguageManager
System.Windows.Input.InputManager
System.Windows.Input.InputMethod
System.Windows.Input.TextComposition
System.Windows.Input.TextCompositionManager
System.Windows.Media.Animation.Clock
System.Windows.Media.Animation.ClockController
System.Windows.Media.CompositionTarget
System.Windows.Media.DrawingContext
System.Windows.Media.Imaging.BitmapDecoder
System.Windows.Media.Imaging.BitmapEncoder
System.Windows.Media.Imaging.BitmapPalette
System.Windows.Media.StreamGeometryContext
System.Windows.PresentationSource
System.Windows.Style
System.Windows.Threading.DispatcherFrame
System.Windows.WeakEventManager
| Name | Description | |
|---|---|---|
![]() | DispatcherObject() | Initializes a new instance of the DispatcherObject class. |
| Name | Description | |
|---|---|---|
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. |
| Name | Description | |
|---|---|---|
![]() | CheckAccess() | Determines whether the calling thread has access to this DispatcherObject. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | VerifyAccess() | Enforces that the calling thread has access to this DispatcherObject. |
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 or BeginInvoke on the Dispatcher the DispatcherObject is associated with.
Subclasses of DispatcherObject that need to enforce thread safety can do so by calling VerifyAccess on all public methods. This guarantees the calling thread is the thread that the DispatcherObject was created on.
A DispatcherObject cannot be independently instantiated; that is, all constructors are protected.
Objects that derive from DispatcherObject have thread affinity.
Objects that derive from Freezable are free-threaded when they are frozen. For more information, see the Freezable Objects Overview.
Available since 3.0
Any public static members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
This object can be accessed only from the thread on which it was created. Attempts to access it from other threads will throw an InvalidOperationException. Invoke or BeginInvoke provide support for marshalling work to the correct thread.


