Share via


IJob::AddTask method

Adds the task to the job.

Syntax

HRESULT AddTask(
  [in] ITask *Task
);

Parameters

  • Task [in]
    An ITask interface that represents the task that you want to add to the job. To create the task, call the ICluster::CreateTask method.

Return value

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

Remarks

Use this method only to add tasks to a job that has not been added to the cluster. After the job is added to the cluster, you must call the ICluster::AddTask method to add tasks to the job.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ICluster::AddTask

ICluster::CancelTask

IJob

IJob::GetTask