Duration Constructor (YearMonthDuration, DayTimeDuration)Duration Constructor (YearMonthDuration, DayTimeDuration)Duration Constructor (YearMonthDuration, DayTimeDuration)

Syntax

Public Sub New ( _
    yearMonth As YearMonthDuration, _
    dayTime As DayTimeDuration _
)
public Duration(
    YearMonthDuration yearMonth,
    DayTimeDuration dayTime
)
public:
Duration(
    YearMonthDuration yearMonth, 
    DayTimeDuration dayTime
)
 

Parameters

yearMonth

Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration

The year and month components of the duration.

dayTime

Type: XmlPrime.DayTimeDurationXmlPrime.DayTimeDurationXmlPrime::DayTimeDuration

The day time components of the duration.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentException yearMonth and dayTime have different signs.