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

Syntax

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

Exceptions

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