YearMonthDuration.UnaryNegation OperatorYearMonthDuration.UnaryNegation OperatorYearMonthDuration::UnaryNegation Operator
Syntax
Public Shared Operator -( _ duration As YearMonthDuration _ ) As YearMonthDuration
public static YearMonthDuration operator -( YearMonthDuration duration )
public: static YearMonthDuration operator -( 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. |