IPrincipal::put_Id method (taskschd.h)

Gets or sets the identifier of the principal.

This property is read/write.

Syntax

HRESULT put_Id(
  BSTR Id
);

Parameters

Id

Return value

None

Remarks

This identifier is also used when specifying the IActionCollection::Context property.

When reading or writing XML for a task, the identifier of the principal is specified in the Id attribute of the Principal 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

IActionCollection.Context

IPrincipal

Task Scheduler