Task.Clone
Task.Clone method
Creates full copy of a task without subtasks.
public object Clone()
Return Value
Created copy of a task.
Examples
Shows how to clone a task.
var project = new Project();
var originalTask = project.RootTask.Children.Add("Task");
var cloneTask = (Task)originalTask.Clone();
Console.WriteLine("Are tasks equal: " + cloneTask.Equals(originalTask));
See Also
- class Task
- namespace Aspose.Tasks
- assembly Aspose.Tasks