Duration Implicit Conversion (TimeSpan to Duration)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Assembly: System.Windows (in System.Windows.dll)
Parameters
- timeSpan
- Type: System.TimeSpan
TimeSpan from which a Duration is implicitly created.
| Exception | Condition |
|---|---|
| ArgumentException | timeSpan evaluates as less than TimeSpan.Zero. |
Show: