DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
É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.