YearMonthDuration.UnaryNegation OperatorYearMonthDuration.UnaryNegation OperatorYearMonthDuration::UnaryNegation Operator

Negates the value of the specified YearMonthDurationYearMonthDurationYearMonthDuration operand.

Syntax

Public Shared Operator -( _
    duration As YearMonthDuration _
) As YearMonthDuration
public static YearMonthDuration operator -(
    YearMonthDuration duration
)
public:
static YearMonthDuration operator -(
    YearMonthDuration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowException The return value would be less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.