DispatcherSynchronizationContext Class

 

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

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

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

public sealed class DispatcherSynchronizationContext : SynchronizationContext

NameDescription
System_CAPS_pubmethodDispatcherSynchronizationContext()

Initializes a new instance of the DispatcherSynchronizationContext class by using the current Dispatcher.

System_CAPS_pubmethodDispatcherSynchronizationContext(Dispatcher)

Initializes a new instance of the DispatcherSynchronizationContext class by using the specified Dispatcher.

System_CAPS_pubmethodDispatcherSynchronizationContext(Dispatcher, DispatcherPriority)

Initializes a new instance of the DispatcherSynchronizationContext class by using the specified Dispatcher.

NameDescription
System_CAPS_pubmethodCreateCopy()

Creates a copy of this DispatcherSynchronizationContext. (Overrides SynchronizationContext.CreateCopy().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIsWaitNotificationRequired()

Determines if wait notification is required.(Inherited from SynchronizationContext.)

System_CAPS_pubmethodOperationCompleted()

When overridden in a derived class, responds to the notification that an operation has completed.(Inherited from SynchronizationContext.)

System_CAPS_pubmethodOperationStarted()

When overridden in a derived class, responds to the notification that an operation has started.(Inherited from SynchronizationContext.)

System_CAPS_pubmethodPost(SendOrPostCallback, Object)

Invokes the callback in the synchronization context asynchronously. (Overrides SynchronizationContext.Post(SendOrPostCallback, Object).)

System_CAPS_pubmethodSend(SendOrPostCallback, Object)

Invokes the callback in the synchronization context synchronously.(Overrides SynchronizationContext.Send(SendOrPostCallback, Object).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWait(IntPtr[], Boolean, Int32)

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.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: