Share via


Job.GetTask Method

Retrieves the specified task.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
Public Function GetTask ( _
    taskId As Integer _
) As ITask
public ITask GetTask (
    int taskId
)
public:
virtual ITask^ GetTask (
    int taskId
) sealed
public final ITask GetTask (
    int taskId
)
public final function GetTask (
    taskId : int
) : ITask

Parameters

  • taskId
    The task identifier. The Task.Id property contains this value.

Return Value

An Task interface that represents the retrieved task.

Remarks

If the job has not been added to the cluster, the identifiers for each task in the job will be zero. If you try to retrieve one of the tasks using zero as the identifier, the method returns the first task in 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.ListTasks Method
Job.GetEnumerator Method