AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# ITaskListManager.GetTask Method

Returns an `ITask` with the specified ID.

ITask GetTask(
int taskID
);

#### Parameters

taskID
  The task ID; must be positive. The ID of an object can be obtained using the `ID` attribute in the object class.

#### Return Value

The task or `null` if it does not exist or the user does not have permission to see the object.

#### Exceptions

Exception Type | Condition
--- | ---
CollaborationException | The method call resulted in an error.
ArgumentException | The task ID is not > 0.
SoapException | There was a communication problem during the execution of the remote method call.

#### See Also

ITaskListManager Interface | Plumtree.Remote.PRC.Collaboration.Tasklist Namespace