CostAccrualType enumeration

Specifies the type of an accrual cost.

public enum CostAccrualType


Undefined-1Indicates undefined value means that the field was not defined in original project file.
Start0Indicates Start cost accrual type.
Prorated1Indicates Prorated cost accrual type.
End2Indicates End cost accrual type.
Invalid3Indicates Invalid cost accrual type.


While exporting into XML the Undefined values will be eliminated from resulting XML.


Shows how and when resource standard and overtime costs are to be charged, or accrued (accrual method: Determines when the cost for a resource is incurred and when actual costs are charged to a project. You can incur costs at the start [Start] or finish [End] of a task or prorate them [Prorated] during the task.), to the cost of a task (CostAccrualType.End).

var project = new Project(DataDir + "Project2.mpp");
var resource = project.Resources.GetById(1);
// set cost accrual type
// if you select the End option, costs are not accrued until remaining work is zero.
resource.Set(Rsc.AccrueAt, CostAccrualType.End);
// work with the project...

See Also