Langue

DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Méthode

Définition

Établit l’instance de flux de travail spécifiée comme instance actuelle.

public:
 virtual void SetInstance(System::Activities::Hosting::WorkflowInstanceProxy ^ instance);
public virtual void SetInstance(System.Activities.Hosting.WorkflowInstanceProxy instance);
abstract member SetInstance : System.Activities.Hosting.WorkflowInstanceProxy -> unit
override this.SetInstance : System.Activities.Hosting.WorkflowInstanceProxy -> unit
Public Overridable Sub SetInstance (instance As WorkflowInstanceProxy)

Paramètres

instance
WorkflowInstanceProxy

Instance de flux de travail à mettre à jour.

Implémente

Remarques

Un DurableTimerExtension objet ne peut être associé qu’à une seule instance de flux de travail. Si un DurableTimerExtension objet est utilisé avec plusieurs instances de flux de travail, un InvalidOperationException objet est levée avec le message suivant :

This TimerExtension has already been attached to a workflow instance.  

S’applique à