Duration Constructor (YearMonthDuration, DayTimeDuration)Duration Constructor (YearMonthDuration, DayTimeDuration)Duration Constructor (YearMonthDuration, DayTimeDuration)
Initializes a new instance of the DurationDurationDuration structure
with the specified YearMonthDurationYearMonthDurationYearMonthDuration and DayTimeDurationDayTimeDurationDayTimeDuration.
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
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | yearMonth and dayTime have different signs. |