DateWithZone.Add Method (DateWithZone, DayTimeDuration)DateWithZone.Add Method (DateWithZone, DayTimeDuration)DateWithZone::Add Method (DateWithZone, DayTimeDuration)
Syntax
Public Shared Function Add( _ date As DateWithZone, _ duration As DayTimeDuration _ ) As DateWithZone
public static DateWithZone Add( DateWithZone date, DayTimeDuration duration )
public: static DateWithZone Add( DateWithZone date, DayTimeDuration duration )
Parameters
Return Value
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
A DateWithZoneDateWithZoneDateWithZone that is the sum of duration and date.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The sum of duration and date is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |