IMaintenanceSettings::get_Exclusive method (taskschd.h)

Indicates whether the Task scheduler must start the task during the Automatic maintenance in exclusive mode.

The exclusivity is guaranteed only between other maintenance tasks and doesn't grant any ordering priority of the task. If exclusivity is not specified, the task is started in parallel with other maintenance tasks.

This property is read/write.


HRESULT get_Exclusive(
  VARIANT_BOOL *target



Return value



Starting a task in exclusive mode means that no other maintenance task is get started in parallel with this one. Exclusivity does not guarantee the task any priority in order of execution.

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


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