ITaskSettings::put_AllowDemandStart method (taskschd.h)
Gets or sets a Boolean value that indicates that the task can be started by using either the Run command or the Context menu.
This property is read/write.
Syntax
HRESULT put_AllowDemandStart(
VARIANT_BOOL allowDemandStart
);
Parameters
allowDemandStart
Return value
None
Remarks
When this property is set to True, the task can be started independent of when any triggers start the task.
When reading or writing XML for a task, this setting is specified in the AllowStartOnDemand element of the Task Scheduler schema.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | taskschd.h |
Library | Taskschd.lib |
DLL | Taskschd.dll |