Executes a task on a specific space node. The space node it will
execute on is controlled by the routing value provided as a second parameter.

C# | Visual Basic | Visual C++ | J# |
T Execute<T>( ISpaceTask<T> task, Object routing, ITransaction tx, int timeout )
Function Execute(Of T) ( _ task As ISpaceTask(Of T), _ routing As Object, _ tx As ITransaction, _ timeout As Integer _ ) As T
generic<typename T> T Execute( ISpaceTask<T>^ task, Object^ routing, ITransaction^ tx, int timeout )

- T
- Type of task execution result.

- task (ISpaceTask<(Of <(T>)>))
- The space task to execute.
- routing (Object)
- Controls routing of the task.
- tx (ITransaction)
- The transaction (if any) under which to work.

An IAsyncResult that references the asynchronous execution.

Exception | Condition |
---|---|
OperationTimeoutException | Timeout expired. |