Share via


DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Yöntem

Tanım

Belirtilen iş akışı örneğini geçerli örnek olarak oluşturur.

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)

Parametreler

instance
WorkflowInstanceProxy

Geçerli hale getirmek için iş akışı örneği.

Uygulamalar

Açıklamalar

Bir DurableTimerExtension nesne yalnızca tek bir iş akışı örneğiyle ilişkilendirilebilir. Bir DurableTimerExtension nesne birden fazla iş akışı örneğiyle kullanılıyorsa, aşağıdaki iletiyle bir InvalidOperationException oluşturulur:

This TimerExtension has already been attached to a workflow instance.  

Şunlara uygulanır