TaskList.NewTask Method

Creates a task on the system using the name provided.

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


Public Function NewTask ( _
    name As String _
) As Task
Dim instance As TaskList
Dim name As String
Dim returnValue As Task

returnValue = instance.NewTask(name)
public Task NewTask(
    string name


  • name
    Type: System.String
    Unique display name for the task. If the name is not unique, an ArgumentException exception is thrown.

Return Value

Type: Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler.Task
Instance of the new task.


Exception Condition

Thrown when there is an existing task with the same name as the one supplied for the new task.

See Also


TaskList Class

TaskList Members

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