DispatcherSynchronizationContext Constructor (Dispatcher^, DispatcherPriority)

.NET Framework (current version)
 

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

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

public:
DispatcherSynchronizationContext(
	Dispatcher^ dispatcher,
	DispatcherPriority priority
)

Parameters

dispatcher
Type: System.Windows.Threading::Dispatcher^

The Dispatcher to associate this DispatcherSynchronizationContext with.

priority
Type: System.Windows.Threading::DispatcherPriority

The priority used to send and post callback methods.

.NET Framework
Available since 4.5
Return to top
Show: