SynchronizationContext.SetSynchronizationContext 方法

定义

设置当前同步上下文。

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

参数

syncContext
SynchronizationContext

要设置的 SynchronizationContext 对象。

属性

适用于