Stop

Asn.Stop field

The date when assignment is stopped.

public static readonly Key<DateTime, AsnKey> Stop;

Examples

Shows how to read assignment’s stop/resume dates.

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

// Print resource assignment's stop and resume dates
foreach (var ra in project.ResourceAssignments)
{
    Console.WriteLine(ra.Get(Asn.Stop).ToShortDateString() == "1/1/2000" ? "NA" : ra.Get(Asn.Stop).ToShortDateString());
    Console.WriteLine(ra.Get(Asn.Resume).ToShortDateString() == "1/1/2000" ? "NA" : ra.Get(Asn.Resume).ToShortDateString());
}

See Also