Job.AddTask Method
Adds the task to the job.
Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)
Usage
Syntax
'Declaration
Public Sub AddTask ( _
task As ITask _
)
public void AddTask (
ITask task
)
public:
virtual void AddTask (
ITask^ task
) sealed
public final void AddTask (
ITask task
)
public final function AddTask (
task : ITask
)
Parameters
- task
A class that implements the ITask interface. The class represents the task that you want to add to the job. To create the task, call the Cluster.CreateTask method.
Remarks
The Task class ITask interface.
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 Cluster.AddTask method to add tasks to the job.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP
Target Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities
See Also
Reference
Job Class
Job Members
Microsoft.ComputeCluster Namespace
Cluster.AddTask Method
Cluster.CancelTasks Method
GetTask