DelayActivity.TimeoutDuration DelayActivity.TimeoutDuration DelayActivity.TimeoutDuration DelayActivity.TimeoutDuration Property


Gets or sets the duration of the delay in the workflow.

 property TimeSpan TimeoutDuration { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan TimeoutDuration { get; set; }
member this.TimeoutDuration : TimeSpan with get, set
Public Property TimeoutDuration As TimeSpan

Property Value

A TimeSpan that indicates the length of the delay in the workflow.


The following code example demonstrates how to set the value of the TimeoutDuration property to 3 seconds. This code assumes that delay2 is of type DelayActivity. This code example is part of the SimpleStateMachineWorkflow SDK Sample from the StateMachineWorkflow.cs file. For more information, see Simple State Machine.

this.state1Delay.Name = "state1Delay";
this.state1Delay.TimeoutDuration = System.TimeSpan.Parse("00:00:02");
Me.state1Delay.Name = "state1Delay"
Me.state1Delay.TimeoutDuration = System.TimeSpan.Parse("00:00:02")


The time period set in this property determines the time the workflow will sit idle before the workflow proceeds to the next activity.

Applies to

See also