System.TimeSpan.Negate Method

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

Syntax

public TimeSpan Negate ()

Returns

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

Exceptions

TypeReason
OverflowExceptionThe value of the current instance is TimeSpan.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0