Duration Implicit Conversion (TimeSpan to Duration)
.NET Framework (current version)
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- timeSpan
-
Type:
System::TimeSpan
TimeSpan from which an instance of Duration is implicitly created.
| Exception | Condition |
|---|---|
| ArgumentException | Occurs when TimeSpan is negative. |
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: