Represents an object that is associated with a Dispatcher.
Assembly: WindowsBase (in WindowsBase.dll)
Thetype exposes the following members.
|CheckAccess||Determines whether the calling thread has access to this .|
|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||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|VerifyAccess||Enforces that the calling thread has access to this .|
Only the thread that the Dispatcher was created on may access the directly. To access a from a thread other than the thread the was created on, call Invoke or BeginInvoke on the Dispatcher the is associated with.
Subclasses of 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 was created on.
A cannot be independently instantiated; that is, all constructors are protected.
Objects that derive from have thread affinity.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
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.