JoinableTaskContext Constructor (Thread^, SynchronizationContext^)
Visual Studio 2015
Initializes a new instance of the JoinableTaskContext.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
public:
JoinableTaskContext(
Thread^ mainThread = null,
SynchronizationContext^ synchronizationContext = null
)
Parameters
- mainThread
-
Type:
System.Threading::Thread^
The thread to switch to in SwitchToMainThreadAsync.
- synchronizationContext
-
Type:
System.Threading::SynchronizationContext^
The synchronization context to use to switch to the main thread.
Show: