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
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionThe sum of duration1 and duration2 is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.