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

Definition

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

public:
 property TimeSpan TimeoutDuration { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.DelayActivity/TimeoutDurationConverter))]
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.

Examples

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")

Remarks

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