DispatcherSynchronizationContext Class
.NET Framework 4.5
Provides a synchronization context for Windows Presentation Foundation (WPF).
System.Object
System.Threading.SynchronizationContext
System.Windows.Threading.DispatcherSynchronizationContext
System.Threading.SynchronizationContext
System.Windows.Threading.DispatcherSynchronizationContext
Namespace: System.Windows.Threading
Assembly: WindowsBase (in WindowsBase.dll)
XMLNS for XAML: Not mapped to an xmlns.
The DispatcherSynchronizationContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DispatcherSynchronizationContext() | Initializes a new instance of the DispatcherSynchronizationContext class by using the current Dispatcher. |
![]() | DispatcherSynchronizationContext(Dispatcher) | Initializes a new instance of the DispatcherSynchronizationContext class by using the specified Dispatcher. |
![]() | DispatcherSynchronizationContext(Dispatcher, DispatcherPriority) | Initializes a new instance of the DispatcherSynchronizationContext class by using the specified Dispatcher. |
| Name | Description | |
|---|---|---|
![]() | CreateCopy | Creates a copy of this DispatcherSynchronizationContext. (Overrides SynchronizationContext.CreateCopy().) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsWaitNotificationRequired | Determines if wait notification is required. (Inherited from SynchronizationContext.) |
![]() | OperationCompleted | When overridden in a derived class, responds to the notification that an operation has completed. (Inherited from SynchronizationContext.) |
![]() | OperationStarted | When overridden in a derived class, responds to the notification that an operation has started. (Inherited from SynchronizationContext.) |
![]() | Post | Invokes the callback in the synchronization context asynchronously. (Overrides SynchronizationContext.Post(SendOrPostCallback, Object).) |
![]() | Send | Invokes the callback in the synchronization context synchronously. (Overrides SynchronizationContext.Send(SendOrPostCallback, Object).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Wait | Waits for any or all the elements in the specified array to receive a signal. (Overrides SynchronizationContext.Wait(IntPtr[], Boolean, Int32).) |
If a Dispatcher is not specified at the creation of the DispatcherSynchronizationContext instance, the current Dispatcher is associated with the DispatcherSynchronizationContext.
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)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
