SynchronizationContext.SetSynchronizationContext(SynchronizationContext) Methode

Definition

Legt den aktuellen Synchronisierungskontext fest.Sets the current synchronization context.

public:
 static void SetSynchronizationContext(System::Threading::SynchronizationContext ^ syncContext);
[System.Security.SecurityCritical]
public static void SetSynchronizationContext (System.Threading.SynchronizationContext syncContext);
public static void SetSynchronizationContext (System.Threading.SynchronizationContext syncContext);
static member SetSynchronizationContext : System.Threading.SynchronizationContext -> unit
Public Shared Sub SetSynchronizationContext (syncContext As SynchronizationContext)

Parameter

syncContext
SynchronizationContext

Das festzulegende SynchronizationContext-Objekt.The SynchronizationContext object to be set.

Attribute

Gilt für: