ITrigger::put_Id method (taskschd.h)

Gets or sets the identifier for the trigger.

This property is read/write.

Syntax

HRESULT put_Id(
  BSTR id
);

Parameters

id

Return value

None

Remarks

When reading or writing XML for a task, the trigger identifier is specified in the Id attribute of the individual trigger elements (for example, the Id attribute of the BootTrigger 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

See also

ITrigger

Task Scheduler