Editar

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
DispatcherSynchronizationContext

Remarks

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

Constructors

Name Description
DispatcherSynchronizationContext()

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

DispatcherSynchronizationContext(Dispatcher, DispatcherPriority)

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

DispatcherSynchronizationContext(Dispatcher)

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

Methods

Name Description
CreateCopy()

Creates a copy of this DispatcherSynchronizationContext.

Post(SendOrPostCallback, Object)

Invokes the callback in the synchronization context asynchronously.

Send(SendOrPostCallback, Object)

Invokes the callback in the synchronization context synchronously.

Wait(IntPtr[], Boolean, Int32)

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

Applies to