IScheduler::CreateTaskId method
Creates a task identifier that identifies a task.
Syntax
HRESULT CreateTaskId(
[in] long jobTaskId,
[out] ITaskId **pId
);
Parameters
jobTaskId [in]
A sequential, numeric identifier that uniquely identifies the task within the job. Task identifiers begin with "1".pId [out]
An ITaskId interface identifies a task in a job.
Return value
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
Remarks
Use this method to create an identifier that identifies a task or parametric task. To create a task identifier that identifies an instance of a parametric task, call the IScheduler::CreateParametricTaskId method.
Examples
For an example, see Cloning a Job.
Requirements
Product |
HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities |
Type library |
Microsoft.Hpc.Scheduler.tlb |