Click or drag to resize

DurationAdd Method

Adds the specified Duration to this instance.

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 Add(
	Duration other
)

Parameters

other
Type: AGI.Foundation.TimeDuration
The Duration to add to this instance.

Return Value

Type: Duration
A Duration that represents the value of this instance plus the value of other.
Exceptions
ExceptionCondition
ArgumentException Thrown if this Duration and other have different TimeStandards.
ArgumentOutOfRangeException Thrown if the result represents a value that cannot be stored in a Duration.
Remarks
The two Durations must have the same time standard, or one of the time standards must be null. Attempting to add two Duration instances with different time standards will result in an ArgumentException.
See Also