Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

DispatcherSynchronizationContext Class

Provides a synchronization context for Windows Presentation Foundation (WPF).

System.Object
  System.Threading.SynchronizationContext
    System.Windows.Threading.DispatcherSynchronizationContext

Namespace:  System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class DispatcherSynchronizationContext : SynchronizationContext

The DispatcherSynchronizationContext type exposes the following members.

  NameDescription
Public methodDispatcherSynchronizationContext()Initializes a new instance of the DispatcherSynchronizationContext class by using the current Dispatcher.
Public methodDispatcherSynchronizationContext(Dispatcher)Initializes a new instance of the DispatcherSynchronizationContext class by using the specified Dispatcher.
Public methodDispatcherSynchronizationContext(Dispatcher, DispatcherPriority)Initializes a new instance of the DispatcherSynchronizationContext class by using the specified Dispatcher.
Top
  NameDescription
Public methodCreateCopyCreates a copy of this DispatcherSynchronizationContext. (Overrides SynchronizationContext.CreateCopy().)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsWaitNotificationRequiredDetermines if wait notification is required. (Inherited from SynchronizationContext.)
Public methodOperationCompletedWhen overridden in a derived class, responds to the notification that an operation has completed. (Inherited from SynchronizationContext.)
Public methodOperationStartedWhen overridden in a derived class, responds to the notification that an operation has started. (Inherited from SynchronizationContext.)
Public methodPostInvokes the callback in the synchronization context asynchronously. (Overrides SynchronizationContext.Post(SendOrPostCallback, Object).)
Public methodSendInvokes the callback in the synchronization context synchronously. (Overrides SynchronizationContext.Send(SendOrPostCallback, Object).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodWaitWaits for any or all the elements in the specified array to receive a signal. (Overrides SynchronizationContext.Wait(IntPtr[], Boolean, Int32).)
Top

If a Dispatcher is not specified at the creation of the DispatcherSynchronizationContext instance, the current Dispatcher is associated with the DispatcherSynchronizationContext.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, 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)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft. All rights reserved.