Click or drag to resize

DurationAddDays Method

Adds a specified number of days to this Duration and returns the new Duration.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public Duration AddDays(
	double days
)

Parameters

days
Type: SystemDouble
The number of days to add.

Return Value

Type: Duration
A new Duration which is the sum of the original Duration and the specified number of days.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if the result represents a value too large to be stored in a Duration.
See Also