DayTimeDuration.Negate MethodDayTimeDuration.Negate MethodDayTimeDuration::Negate Method
Syntax
Public Shared Function Negate( _ duration As DayTimeDuration _ ) As DayTimeDuration
public static DayTimeDuration Negate( DayTimeDuration duration )
public: static DayTimeDuration Negate( DayTimeDuration duration )
Parameters
Return Value
Type: XmlPrime.DayTimeDurationXmlPrime.DayTimeDurationXmlPrime::DayTimeDuration
The additive inverse of DayTimeDurationDayTimeDurationDayTimeDuration.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The return value is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |