Click or drag to resize
Task Scheduler Managed Class Library

TaskSettingsRestartCount Property

Gets or sets the number of times that the Task Scheduler will attempt to restart the task.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
[DefaultValueAttribute(0)]
[XmlIgnoreAttribute]
public int RestartCount { get; set; }
Request Example View Source

Property Value

Int32
The number of times that the Task Scheduler will attempt to restart the task. If this property is set, the RestartInterval property must also be set.
Exceptions
ExceptionCondition
NotV1SupportedExceptionNot supported under Task Scheduler 1.0.
See Also