ITask::get_Id method

Retrieves the task identifier.

Syntax

HRESULT get_Id(
  [out] long *pRetVal
);

Parameters

  • pRetVal [out]
    The task identifier.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

The identifier is not generated until you add the job to the cluster. The identifier will be zero if you call the IJob::AddTask method to add the task to a job. If you call the ICluster::AddTask method to add the task to an existing job, the identifier is generated when you add the task to the job.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ITask