DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.