Task.Run Method

Schedules the task for immediate execution.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public Sub Run
'Usage
Dim instance As Task

instance.Run()
public void Run()

Remarks

The system never updates an open task, so you will not receive the current results for the Status or ExitCode property until you close and reopen the task.

The system works from the saved version of the task, so call Save before running. If the task was never saved, it throws an argument exception. Problems starting the task are reported by the ExitCode property, not by the exceptions thrown by the Run method.

See Also

Reference

Task Class

Task Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace