IMaintenanceSettings::get_Period method (taskschd.h)

Gets or sets the amount of time the task needs to be once executed during regular Automatic maintenance.

This property is read/write.

Syntax

HRESULT get_Period(
  BSTR *target
);

Parameters

target

Return value

None

Remarks

The minimum value for this property is 1 day (P1D).

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

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header taskschd.h
Library Taskschd.lib
DLL Taskschd.dll

See also

IMaintenanceSettings