SynchronizationContext.SetSynchronizationContext(SynchronizationContext) Method

Definition

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)

Parameters

syncContext
SynchronizationContext

The SynchronizationContext object to be set.

Attributes

Applies to