Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DelayActivity.TimeoutDuration Property

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

Namespace:  System.Workflow.Activities
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

public TimeSpan TimeoutDuration { get; set; }

Property Value

Type: System.TimeSpan
A TimeSpan that indicates the length of the delay in the workflow.

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

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft