Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ITaskSettings::RestartCount property

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

This property is read/write.

Syntax


HRESULT put_RestartCount(
  [in]  int restartCount
);

HRESULT get_RestartCount(
  [out] int *pRestartCount
);

Property value

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.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Remarks

When reading or writing XML for a task, this setting is specified in the Count element of the Task Scheduler schema.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITaskSettings
Task Scheduler
ITaskSettings

 

 

Community Additions

ADD
Show:
© 2015 Microsoft