YearMonthDuration.Addition OperatorYearMonthDuration.Addition OperatorYearMonthDuration::Addition Operator
Syntax
Public Shared Operator +( _ duration1 As YearMonthDuration, _ duration2 As YearMonthDuration _ ) As YearMonthDuration
public static YearMonthDuration operator +( YearMonthDuration duration1, YearMonthDuration duration2 )
public: static YearMonthDuration operator +( YearMonthDuration duration1, YearMonthDuration duration2 )
Parameters
- duration1
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The first YearMonthDurationYearMonthDurationYearMonthDuration to add.
- duration2
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The second YearMonthDurationYearMonthDurationYearMonthDuration to add.
Return Value
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
A YearMonthDurationYearMonthDurationYearMonthDuration that is the sum of duration1 and duration2.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The sum of duration1 and duration2 is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |