DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Metod

Definition

Etablerar den angivna arbetsflödesinstansen som den aktuella instansen.

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)

Parametrar

instance
WorkflowInstanceProxy

Arbetsflödesinstansen som ska vara aktuell.

Implementeringar

Kommentarer

Ett DurableTimerExtension objekt kan bara associeras med en enda arbetsflödesinstans. Om ett DurableTimerExtension objekt används med fler än en arbetsflödesinstans genereras ett InvalidOperationException med följande meddelande:

This TimerExtension has already been attached to a workflow instance.  

Gäller för