Resource.Assignments

Resource.Assignments property

Gets a collection of resource assignments for this object.

public ResourceAssignmentCollection Assignments { get; }

Examples

Shows how to read assignments of a resource.

var project = new Project(DataDir + "BudgetWorkAndCost.mpp");

foreach (var resource in project.Resources)
{
    foreach (var assignment in resource.Assignments)
    {
        Console.WriteLine("Assignment UID: " + assignment.Get(Asn.Uid));
        Console.WriteLine("Assignment's task name: " + assignment.Get(Asn.Task).Get(Tsk.Name));
    }
}

See Also