共用方式為


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 物件。

屬性

適用於