DurableTimerExtension.SetInstance(WorkflowInstanceProxy) Methode

Definitie

Hiermee wordt het opgegeven werkstroomexemplaren ingesteld als het huidige exemplaar.

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

Het werkstroomexemplaren om actueel te maken.

Implementeringen

Opmerkingen

Een DurableTimerExtension object kan slechts worden gekoppeld aan één werkstroomexemplaar. Als een DurableTimerExtension object wordt gebruikt met meer dan één werkstroomexemplaren, wordt er een InvalidOperationException gegenereerd met het volgende bericht:

This TimerExtension has already been attached to a workflow instance.  

Van toepassing op