[This is preliminary documentation and is subject to change.]

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

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public TimeSpanFormattable Duration()
Visual Basic
Public Function Duration As TimeSpanFormattable
Visual C++
public:
TimeSpanFormattable Duration()
F#
member Duration : unit -> TimeSpanFormattable 
JScript
public function Duration() : TimeSpanFormattable

Return Value

A new TimeSpanFormattable whose value is the absolute value of the current TimeSpanFormattable object.

Exceptions

ExceptionCondition
System..::..OverflowExceptionThe value of this instance is MinValue.

See Also