Edit

Share via


DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Method

Definition

Establishes the specified workflow instance as the current instance.

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)

Parameters

instance
WorkflowInstanceProxy

The workflow instance to make current.

Implements

Remarks

A DurableTimerExtension object can only be associated with a single workflow instance. If a DurableTimerExtension object is used with more than one workflow instance, an InvalidOperationException is thrown with the following message:

This TimerExtension has already been attached to a workflow instance.  

Applies to