DispatcherSynchronizationContext Constructor (Dispatcher)
Collapse the table of content
Expand the table of content

DispatcherSynchronizationContext Constructor (Dispatcher)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public DispatcherSynchronizationContext(
	Dispatcher dispatcher
)

Parameters

dispatcher
Type: System.Windows.Threading.Dispatcher
The Dispatcher to associate this DispatcherSynchronizationContext with.

ExceptionCondition
ArgumentNullException

dispatcher is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft