ResourceAssignment.ParentProject
ResourceAssignment.ParentProject property
Gets parent project for this assignment.
public Project ParentProject { get; }
Examples
Shows how to use parent project of a resource assignment.
var project = new Project();
var task = project.RootTask.Children.Add("Task");
var resource = project.Resources.Add("Resource");
var resourceAssignment = project.ResourceAssignments.Add(task, resource);
// set a duration of the assignment by using default project time unit type.
resourceAssignment.Set(Asn.Work, resource.ParentProject.GetWork(1));
Console.WriteLine(resourceAssignment.Get(Asn.Work));
See Also
- class Project
- class ResourceAssignment
- namespace Aspose.Tasks
- assembly Aspose.Tasks