Rsc.OvertimeCost

Rsc.OvertimeCost field

The total overtime cost for a resource on all assigned tasks.

public static readonly Key<decimal, RscKey> OvertimeCost;

Examples

Shows how to read resource overtime values.

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

// Display overtime related parameters for all resources
foreach (var res in project.Resources)
{
    if (res.Get(Rsc.Name) == null)
    {
        continue;
    }

    Console.WriteLine(res.Get(Rsc.OvertimeCost));
    Console.WriteLine(res.Get(Rsc.OvertimeWork).ToString());
    Console.WriteLine(res.Get(Rsc.OvertimeRateFormat).ToString());
}

See Also