Task.Assignments
Task.Assignments property
Gets a collection of resource assignments for this object.
public ResourceAssignmentCollection Assignments { get; }
Examples
Shows how to iterate over task’s assignments.
var project = new Project(DataDir + "BudgetWorkAndCost.mpp");
var collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);
foreach (var task in collector.Tasks)
{
// display task's assignments
foreach (var assignment in task.Assignments)
{
Console.WriteLine(assignment.ToString());
}
}
See Also
- class ResourceAssignmentCollection
- class Task
- namespace Aspose.Tasks
- assembly Aspose.Tasks