Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Applies the specified SynchronizationContext to the caller's context.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Shared Function Apply ( _
syncContext As SynchronizationContext, _
checkForChangesOnRevert As Boolean _
) As SpecializedSyncContext
public static SpecializedSyncContext Apply(
SynchronizationContext syncContext,
bool checkForChangesOnRevert
)
public:
static SpecializedSyncContext Apply(
SynchronizationContext^ syncContext,
bool checkForChangesOnRevert
)
static member Apply :
syncContext:SynchronizationContext *
checkForChangesOnRevert:bool -> SpecializedSyncContext
public static function Apply(
syncContext : SynchronizationContext,
checkForChangesOnRevert : boolean
) : SpecializedSyncContext
Parameters
syncContext
Type: System.Threading.SynchronizationContextThe synchronization context to apply.
checkForChangesOnRevert
Type: System.BooleanA value indicating whether to check that the applied SynchronizationContext is still the current one when the original is restored.
Return Value
Type: Microsoft.VisualStudio.Threading.SpecializedSyncContext
Returns SpecializedSyncContext.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.