SynchronizationContext.SetSynchronizationContext(SynchronizationContext) SynchronizationContext.SetSynchronizationContext(SynchronizationContext) SynchronizationContext.SetSynchronizationContext(SynchronizationContext) 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);
static member SetSynchronizationContext : System.Threading.SynchronizationContext -> unit
Public Shared Sub SetSynchronizationContext (syncContext As SynchronizationContext)

Parameters

Security

SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to