Export (0) Print
Expand All

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)

new : 
        dispatcher:Dispatcher -> DispatcherSynchronizationContext

Parameters

dispatcher
Type: System.Windows.Threading.Dispatcher

The Dispatcher to associate this DispatcherSynchronizationContext with.

ExceptionCondition
ArgumentNullException

dispatcher is a null reference (Nothing in Visual Basic).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft