Resource.Delete
Resource.Delete method
Deletes a resource and its assignments from project.
public void Delete()
Examples
Shows how to delete a resource.
var project = new Project(DataDir + "Baselines2010.mpp");
var resource = project.Resources.GetById(1);
Console.WriteLine("Number of resources (before): " + project.Resources.Count);
// delete the resource
resource.Delete();
Console.WriteLine("Number of resources (after): " + project.Resources.Count);
See Also
- class Resource
- namespace Aspose.Tasks
- assembly Aspose.Tasks