TimerExtension.SetTimer Method (TimeSpan, ActivityExecutionContext)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a new timer with the specified duration.
Namespace: System.Activities.Core
Assembly: System.Activities.Core (in System.Activities.Core.dll)
Syntax
'Declaration
Public MustOverride Function SetTimer ( _
timeout As TimeSpan, _
context As ActivityExecutionContext _
) As String
'Usage
Dim instance As TimerExtension
Dim timeout As TimeSpan
Dim context As ActivityExecutionContext
Dim returnValue As String
returnValue = instance.SetTimer(timeout, _
context)
public abstract string SetTimer(
TimeSpan timeout,
ActivityExecutionContext context
)
public:
virtual String^ SetTimer(
TimeSpan timeout,
ActivityExecutionContext^ context
) abstract
public abstract function SetTimer(
timeout : TimeSpan,
context : ActivityExecutionContext
) : String
abstract SetTimer :
timeout:TimeSpan *
context:ActivityExecutionContext -> string
Parameters
- timeout
Type: System.TimeSpan
The time period before the timer expires.
- context
Type: System.Activities.ActivityExecutionContext
The execution context of the activity to be executed.
Return Value
Type: System.String
The identifier of the created timer.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4