DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Methode

Definition

Legt die angegebene Workflowinstanz als aktuelle Instanz fest.

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)

Parameter

instance
WorkflowInstanceProxy

Die Workflowinstanz, die aktuell wird.

Implementiert

Hinweise

Ein DurableTimerExtension Objekt kann nur einer einzelnen Workflowinstanz zugeordnet werden. Wenn ein DurableTimerExtension Objekt mit mehreren Workflowinstanzen verwendet wird, wird ein InvalidOperationException Objekt mit der folgenden Meldung ausgelöst:

This TimerExtension has already been attached to a workflow instance.  

Gilt für: