DispatcherSynchronizationContext DispatcherSynchronizationContext DispatcherSynchronizationContext DispatcherSynchronizationContext Class

Definition

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

public ref class DispatcherSynchronizationContext sealed : System::Threading::SynchronizationContext
public sealed class DispatcherSynchronizationContext : System.Threading.SynchronizationContext
type DispatcherSynchronizationContext = class
    inherit SynchronizationContext
Public NotInheritable Class DispatcherSynchronizationContext
Inherits SynchronizationContext
Inheritance
DispatcherSynchronizationContextDispatcherSynchronizationContextDispatcherSynchronizationContextDispatcherSynchronizationContext

Remarks

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

Constructors

DispatcherSynchronizationContext() DispatcherSynchronizationContext() DispatcherSynchronizationContext() DispatcherSynchronizationContext()

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

DispatcherSynchronizationContext(Dispatcher) DispatcherSynchronizationContext(Dispatcher) DispatcherSynchronizationContext(Dispatcher) DispatcherSynchronizationContext(Dispatcher)

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

DispatcherSynchronizationContext(Dispatcher, DispatcherPriority) DispatcherSynchronizationContext(Dispatcher, DispatcherPriority) DispatcherSynchronizationContext(Dispatcher, DispatcherPriority) DispatcherSynchronizationContext(Dispatcher, DispatcherPriority)

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

Methods

CreateCopy() CreateCopy() CreateCopy() CreateCopy()

Creates a copy of this DispatcherSynchronizationContext.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsWaitNotificationRequired() IsWaitNotificationRequired() IsWaitNotificationRequired() IsWaitNotificationRequired()

Determines if wait notification is required.

(Inherited from SynchronizationContext)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OperationCompleted() OperationCompleted() OperationCompleted() OperationCompleted()

When overridden in a derived class, responds to the notification that an operation has completed.

(Inherited from SynchronizationContext)
OperationStarted() OperationStarted() OperationStarted() OperationStarted()

When overridden in a derived class, responds to the notification that an operation has started.

(Inherited from SynchronizationContext)
Post(SendOrPostCallback, Object) Post(SendOrPostCallback, Object) Post(SendOrPostCallback, Object) Post(SendOrPostCallback, Object)

Invokes the callback in the synchronization context asynchronously.

Send(SendOrPostCallback, Object) Send(SendOrPostCallback, Object) Send(SendOrPostCallback, Object) Send(SendOrPostCallback, Object)

Invokes the callback in the synchronization context synchronously.

SetWaitNotificationRequired() SetWaitNotificationRequired() SetWaitNotificationRequired() SetWaitNotificationRequired()

Sets notification that wait notification is required and prepares the callback method so it can be called more reliably when a wait occurs.

(Inherited from SynchronizationContext)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Wait(IntPtr[], Boolean, Int32) Wait(IntPtr[], Boolean, Int32) Wait(IntPtr[], Boolean, Int32) Wait(IntPtr[], Boolean, Int32)

Waits for any or all the elements in the specified array to receive a signal.

Applies to