Task.Delete
Task.Delete method
Deletes a task from parent project tasks collection and all its assignments.
public void Delete()
Examples
Shows how to delete a task.
var project = new Project();
var task = project.RootTask.Children.Add("Task");
Console.WriteLine("Number of tasks: " + project.RootTask.Children.Count);
// delete a task
task.Delete();
Console.WriteLine("Number of tasks: " + project.RootTask.Children.Count);
See Also
- class Task
- namespace Aspose.Tasks
- assembly Aspose.Tasks