SynchronizationContext.Current 屬性

定義

取得目前執行緒的同步處理內容。Gets the synchronization context for the current thread.

public:
 static property System::Threading::SynchronizationContext ^ Current { System::Threading::SynchronizationContext ^ get(); };
public static System.Threading.SynchronizationContext Current { get; }
member this.Current : System.Threading.SynchronizationContext
Public Shared ReadOnly Property Current As SynchronizationContext

屬性值

SynchronizationContext 物件,代表目前的同步處理內容。A SynchronizationContext object representing the current synchronization context.

備註

這個屬性適用于將同步處理內容從一個執行緒傳播到另一個執行緒。This property is useful for propagating a synchronization context from one thread to another.

適用於