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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru