DelayActivity.TimeoutDuration Property
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.
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; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.DelayActivity+TimeoutDurationConverter))>]
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.
- Attributes
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om