Trigger.DurationMinutes Property
Gets or sets the number of minutes that the trigger remains active after the trigger fires.
Namespace: Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler
Assembly: Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)
Syntax
'Declaration
Public Property DurationMinutes As Integer
Get
Set
'Usage
Dim instance As Trigger
Dim value As Integer
value = instance.DurationMinutes
instance.DurationMinutes = value
public int DurationMinutes { get; set; }
Property Value
Type: System.Int32
The number of minutes.
Remarks
This property is used in conjunction with the IntervalMinutes property to run a task repeatedly for a period of time. For example, to start a task at 8:00 A.M. and repeatedly restart it until 5:00 P.M., the DurationMinutes value would be 540 minutes (9 hours).
The DurationMinutes value can also be used to terminate a running task after the DurationMinutes property for the task expires.
You use the KillAtDurationEnd property to specify that the task is terminated after its DurationMinutes expires. The value of
DurationMinutes must be greater than or equal to the IntervalMinutes setting.
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace