YearMonthDuration.Add MethodYearMonthDuration.Add MethodYearMonthDuration::Add Method

Syntax

Public Shared Function Add( _
    duration1 As YearMonthDuration, _
    duration2 As YearMonthDuration _
) As YearMonthDuration
public static YearMonthDuration Add(
    YearMonthDuration duration1,
    YearMonthDuration duration2
)
public:
static YearMonthDuration Add(
    YearMonthDuration duration1, 
    YearMonthDuration duration2
)
 

Exceptions

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