Task.MaxRunTimeLimited Property

Gets or sets whether the maximum run time is limited.

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 MaxRunTimeLimited As Boolean
    Get
    Set
'Usage
Dim instance As Task
Dim value As Boolean

value = instance.MaxRunTimeLimited

instance.MaxRunTimeLimited = value
public bool MaxRunTimeLimited { get; set; }

Property Value

Type: System.Boolean
If true, the maximum run time is limited; otherwise false.

Remarks

If the maximum run time is limited, the task is terminated after the MaxRunTime value expires. Setting the value to false assumes an unlimited run time and invalidates the MaxRunTime value.

The Task Scheduler service tries to send a WM_CLOSE message when it needs to terminate a task. If the message cannot be sent, or the task does not respond within three minutes, the task is terminated by using the TerminateProcess call.

See Also

Reference

Task Class

Task Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace