Provides the logic to establish a timer and to wait, asynchronously, for timer's expiration. This class cannot be inherited.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
[ToolboxBitmapAttribute(typeof(DelayActivity), "Resources.Delay.png")] [ObsoleteAttribute("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] public sealed class DelayActivity : Activity, IEventActivity, IActivityEventListener<QueueEventArgs>
Gets the value that indicates whether this instance is in design or run-time mode.(Inherited from DependencyObject.)
Gets or sets a value that indicates whether this instance is enabled for execution and validation.(Inherited from Activity.)
Gets or sets the name of this instance. This name must conform to the variable naming convention of the programming language that is being used in the Workflow project.(Inherited from Activity.)
Gets the qualified name of the activity. Qualified activity names are always unique in a workflow instance.(Inherited from Activity.)
Gets and sets the duration of the delay in the workflow.
Occurs when the activity execution is canceled. (Inherited from Activity.)
Occurs when an exception is raised during the running of the instance.(Inherited from Activity.)
Occurs before the time-out duration starts.
Represents the method that handles the Disposed event of a component.(Inherited from DependencyObject.)
Creates the subscription of theto an event.
Cancels the subscription of theto an event.
Defines the processing procedure when the subscribed-to event occurs.
Gets the name of the workflow queue that will be delivered when the timer expires.
This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
When notified that its timer has expired, acompletes its execution.
The TimeoutDuration. The delay can take longer because the timer notification might occur some time after the TimeoutDuration is reached. One reason for a longer delay is if the workflow is running under high system stress in a server environment.is guaranteed to complete no sooner than the indicated
The following code example demonstrates how to create a new instance of theclass. This code example is part of the SimpleStateMachineWorkflow SDK Sample from the StateMachineWorkflow.cs file. For more information, see Simple State Machine.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.