IPrincipal::get_Id method (taskschd.h)
Gets or sets the identifier of the principal.
This property is read/write.
Syntax
HRESULT get_Id(
BSTR *pId
);
Parameters
pId
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 |