Share via


NonConcurrentSynchronizationContext(Boolean) Constructor

Definition

Initializes a new instance of the NonConcurrentSynchronizationContext class.

public:
 NonConcurrentSynchronizationContext(bool sticky);
public NonConcurrentSynchronizationContext (bool sticky);
new Microsoft.VisualStudio.Threading.NonConcurrentSynchronizationContext : bool -> Microsoft.VisualStudio.Threading.NonConcurrentSynchronizationContext
Public Sub New (sticky As Boolean)

Parameters

sticky
Boolean

A value indicating whether to set this instance as Current when invoking delegates. This has the effect that async methods that are invoked on this SynchronizationContext will execute their continuations on this SynchronizationContext as well unless they use ConfigureAwait(Boolean) with false as the argument.

Applies to