SetMaterialResourceUnits
ResourceAssignment.SetMaterialResourceUnits method
Sets units for assignment of a material resource with variable material consumption. The variable material consumption means that as the assignment duration changes, the quantity of materials used changes proportionally.
public void SetMaterialResourceUnits(double units, RateScaleType rateScaleType)
Parameter | Type | Description |
---|---|---|
units | Double | Number of units accrued at the time period. |
rateScaleType | RateScaleType | Time period at which the unit value is accrued. |
Exceptions
exception | condition |
---|---|
InvalidOperationException | If the method is called for assignment of non-material resource. |
Remarks
For example, to set ‘123/month’, SetUnitsScaled(123D, RateScaleType.Month) should be called.
See Also
- enum RateScaleType
- class ResourceAssignment
- namespace Aspose.Tasks
- assembly Aspose.Tasks