Share via


IJob.GetTask Method

Retrieves the specified task.

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

Usage

Syntax

'Declaration
Function GetTask ( _
    taskId As Integer _
) As ITask
ITask GetTask (
    int taskId
)
ITask^ GetTask (
    int taskId
)
ITask GetTask (
    int taskId
)
function GetTask (
    taskId : int
) : ITask

Parameters

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

Return Value

An ITask 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

IJob Interface
IJob Members
Microsoft.ComputeCluster Namespace
ICluster.ListTasks Method
IJob.GetEnumerator Method