Bridge

TimeSpan..::..Negate Method

Returns a new TimeSpan object whose value is the negated value of this instance.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public TimeSpan Negate()
Public Function Negate As TimeSpan
public:
TimeSpan^ Negate()

Return Value

A new object with the same numeric value as this instance, but with the opposite sign.

Exceptions


ExceptionCondition
System..::..OverflowExceptionThe negated value of this instance cannot be represented by a TimeSpan; that is, the value of this instance is MinValue.