Duration Constructor (TimeSpan)
.NET Framework (current version)
Namespace:
System.Windows
Assembly: PresentationCore (in PresentationCore.dll)
Return to top
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- timeSpan
-
Type:
System::TimeSpan
Represents the initial time interval of this duration.
| Exception | Condition |
|---|---|
| ArgumentException | Occurs when timeSpan is initialized to a negative value. |
.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: