DispatcherSynchronizationContext Constructor (Dispatcher)

 

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
)

Parameters

dispatcher
Type: System.Windows.Threading.Dispatcher

The Dispatcher to associate this DispatcherSynchronizationContext with.

Exception Condition
ArgumentNullException

dispatcher is null.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: