Asn.CostVariance

Asn.CostVariance field

The difference between the baseline cost and total cost for an assignment.

public static readonly Key<double, AsnKey> CostVariance;

Examples

Shows how to read assignment’s variances.

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

// Print assignment variances
foreach (var ra in project.ResourceAssignments)
{
    Console.WriteLine(ra.Get(Asn.WorkVariance));
    Console.WriteLine(ra.Get(Asn.CostVariance));
    Console.WriteLine(ra.Get(Asn.StartVariance));
    Console.WriteLine(ra.Get(Asn.FinishVariance));
}

See Also