Duration.Negate MethodDuration.Negate MethodDuration::Negate Method

Negates the value of the specified DurationDurationDuration operand.

Syntax

Public Shared Function Negate( _
    duration As Duration _
) As Duration
public static Duration Negate(
    Duration duration
)
public:
static Duration Negate(
    Duration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionThe return value is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.