Assembly: CcpAPI (in ccpapi.dll)
public final function AddTasks ( jobId : int, tasks : IClusterEnumerable ) : IClusterEnumerable
Return ValueAn IClusterEnumerable interface that contains a collection of integers that identify the tasks that were added to the job. The identifiers in this collection correspond directly to the tasks passed in the tasks parameter.
If you need to add multiple tasks to a job, calling this method provides better performance than calling the Cluster.AddTask method in a loop.
To create the enumerable object that contains the collection of tasks, call the Cluster.CreateClusterEnumerable method. Then, call the ClusterEnumerable.Add method for each task that you want to add to the enumerable object.
If this method fails to add one of the tasks to the job, none of the tasks are added to the job. The likely reason for failing to add a task to a job is if resource usage or run-time requirements of the task conflict with job.
A task cannot be modified after it is added to a job.