ThreadingTools.Apply(SynchronizationContext, Boolean) Yöntem

Tanım

Belirtilen SynchronizationContext çağıranın bağlamına uygular.

public static Microsoft.VisualStudio.Threading.SpecializedSyncContext Apply (this System.Threading.SynchronizationContext syncContext, bool checkForChangesOnRevert = true);
static member Apply : System.Threading.SynchronizationContext * bool -> Microsoft.VisualStudio.Threading.SpecializedSyncContext
<Extension()>
Public Function Apply (syncContext As SynchronizationContext, Optional checkForChangesOnRevert As Boolean = true) As SpecializedSyncContext

Parametreler

syncContext
SynchronizationContext

Uygulanacak eşitleme bağlamı.

checkForChangesOnRevert
Boolean

Orijinal geri yüklendiğinde, uygulanan SyncContext 'in hala geçerli olduğunu denetleyip denetmeyeceğini belirten bir değer.

Döndürülenler

SpecializedSyncContext

SpecializedSyncContext döndürür.

Şunlara uygulanır