DurationAddSeconds Method |
Adds a specified number of seconds to this
Duration and returns the new
Duration.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic Duration AddSeconds(
double seconds
)
Public Function AddSeconds (
seconds As Double
) As Duration
public:
Duration AddSeconds(
double seconds
)
member AddSeconds :
seconds : float -> Duration
Parameters
- seconds
- Type: SystemDouble
The number of seconds to add.
Return Value
Type:
DurationA new
Duration which is the sum of the original
Duration and the specified number of seconds.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException |
Thrown if the result represents a value too large to be stored in a Duration.
|
See Also