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 )
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. |