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)

Syntax

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

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

Parameters

  • 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.

Exceptions

Exception Condition
[ArgumentException]

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

See Also

Reference

TaskList Class

TaskList Members

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