DateWithZone.Add Method (DateWithZone, YearMonthDuration)DateWithZone.Add Method (DateWithZone, YearMonthDuration)DateWithZone::Add Method (DateWithZone, YearMonthDuration)

Syntax

Public Shared Function Add( _
    date As DateWithZone, _
    duration As YearMonthDuration _
) As DateWithZone
public static DateWithZone Add(
    DateWithZone date,
    YearMonthDuration duration
)
public:
static DateWithZone Add(
    DateWithZone date, 
    YearMonthDuration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionThe sum of duration and date is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.