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.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- dispatcher
- Type: System.Windows.Threading.Dispatcher
The Dispatcher to associate this DispatcherSynchronizationContext with.
| Exception | Condition |
|---|---|
| ArgumentNullException | dispatcher is null. |
Show: