## SynchronizationContext::SetSynchronizationContext method


Setzt den Synchronisationskontext für den aktuellen Thread.

```cpp
static void System::Threading::SynchronizationContext::SetSynchronizationContext(const SharedPtr<SynchronizationContext> &syncContext)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| syncContext | const SharedPtr\<SynchronizationContext\>\& | Der Synchronisationskontext, der für den aktuellen Thread festgelegt werden soll. |
## Hinweise



Das Übergeben von nullptr löscht den Synchronisationskontext für den aktuellen Thread.

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [SynchronizationContext](../)
* Class [SynchronizationContext](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
