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

Syntax

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

Exceptions

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