Share via


WorkflowServiceAttributes.UseSynchronizationContext Proprietà

Definizione

Ottiene o imposta un valore che specifica se utilizzare il contesto di sincronizzazione corrente per scegliere il thread di esecuzione.

public:
 property bool UseSynchronizationContext { bool get(); void set(bool value); };
public bool UseSynchronizationContext { get; set; }
member this.UseSynchronizationContext : bool with get, set
Public Property UseSynchronizationContext As Boolean

Valore della proprietà

Boolean

true se tutte le chiamate al servizio devono essere eseguite sul thread specificato da SynchronizationContext; in caso contrario, false.

Esempio

Nell'esempio seguente viene illustrato come accedere alla proprietà UseSynchronizationContext.

WorkflowServiceAttributes attributes = new WorkflowServiceAttributes();
attributes.UseSynchronizationContext = false;
Dim attributes As New WorkflowServiceAttributes()
attributes.UseSynchronizationContext = False

Commenti

Il valore predefinito è true.

Si applica a