YearMonthDuration.Negate MethodYearMonthDuration.Negate MethodYearMonthDuration::Negate Method
Syntax
Public Shared Function Negate( _ duration As YearMonthDuration _ ) As YearMonthDuration
public static YearMonthDuration Negate( YearMonthDuration duration )
public: static YearMonthDuration Negate( YearMonthDuration duration )
Parameters
Return Value
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The additive inverse of YearMonthDurationYearMonthDurationYearMonthDuration.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The return value would be less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |