[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: ToolsAssembly: 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
| Exception | Condition |
|---|---|
| System..::..OverflowException | The value of this instance is MinValue. |