DayTimeDuration Constructor (long, decimal)DayTimeDuration Constructor (Long, Decimal)DayTimeDuration Constructor (long, decimal)

Initializes a new instance of the DayTimeDurationDayTimeDurationDayTimeDuration class with the specified duration in days and seconds.

Syntax

Public Sub New ( _
    days As Long, _
    seconds As Decimal _
)
public DayTimeDuration(
    long days,
    decimal seconds
)
public:
DayTimeDuration(
    long days, 
    decimal seconds
)
 

Parameters

days

Type: System.Int64System.Int64System::Int64

The number of days.

seconds

Type: System.DecimalSystem.DecimalSystem::Decimal

The number of seconds.

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowException The components represent a duration less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.