Mono Class Library: System.TimeSpan Overview | Members

System.TimeSpan.Negate Method

Returns a TimeSpan with the same absolute value but opposite sign as the current instance.

public TimeSpan Negate ()

Returns

A TimeSpan with the same absolute value but with the opposite sign as the current instance.

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