DayTimeDuration Constructor (long, int, int, decimal)DayTimeDuration Constructor (Long, Integer, Integer, Decimal)DayTimeDuration Constructor (long, int, int, decimal)
Initializes a new instance of the DayTimeDurationDayTimeDurationDayTimeDuration structure with the specified duration in
days, hours, minutes and seconds.
Parameters
- days
Type: System.Int64System.Int64System::Int64
The number of days.
- hours
Type: System.Int32System.Int32System::Int32
The number of hours.
- minutes
Type: System.Int32System.Int32System::Int32
The number of minutes.
- seconds
Type: System.DecimalSystem.DecimalSystem::Decimal
The number of seconds.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The duration components represent a duration less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |