Duration Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.

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

public TimeSpan Duration()

Return Value

Type: System..::..TimeSpan
A new object whose value is the absolute value of the current TimeSpan object.

ExceptionCondition
OverflowException

The value of this instance is TimeSpan..::..MinValue.

Show: