ערוך

שתף באמצעות


DispatcherSynchronizationContext Constructors

Definition

Initializes a new instance of the DispatcherSynchronizationContext class.

Overloads

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.

DispatcherSynchronizationContext()

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

public:
 DispatcherSynchronizationContext();
public DispatcherSynchronizationContext ();
Public Sub New ()

Applies to

DispatcherSynchronizationContext(Dispatcher)

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

public:
 DispatcherSynchronizationContext(System::Windows::Threading::Dispatcher ^ dispatcher);
public DispatcherSynchronizationContext (System.Windows.Threading.Dispatcher dispatcher);
new System.Windows.Threading.DispatcherSynchronizationContext : System.Windows.Threading.Dispatcher -> System.Windows.Threading.DispatcherSynchronizationContext
Public Sub New (dispatcher As Dispatcher)

Parameters

dispatcher
Dispatcher

The Dispatcher to associate this DispatcherSynchronizationContext with.

Exceptions

dispatcher is null.

Applies to

DispatcherSynchronizationContext(Dispatcher, DispatcherPriority)

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

public:
 DispatcherSynchronizationContext(System::Windows::Threading::Dispatcher ^ dispatcher, System::Windows::Threading::DispatcherPriority priority);
public DispatcherSynchronizationContext (System.Windows.Threading.Dispatcher dispatcher, System.Windows.Threading.DispatcherPriority priority);
new System.Windows.Threading.DispatcherSynchronizationContext : System.Windows.Threading.Dispatcher * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherSynchronizationContext
Public Sub New (dispatcher As Dispatcher, priority As DispatcherPriority)

Parameters

dispatcher
Dispatcher

The Dispatcher to associate this DispatcherSynchronizationContext with.

priority
DispatcherPriority

The priority used to send and post callback methods.

Applies to