Duration Operators and Type Conversions
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Duration type exposes the following members.
| Name | Description | |
|---|---|---|
|
Addition | Adds two Duration values together. |
|
Equality | Determines whether two Duration cases are equal. |
|
GreaterThan | Determines if one Duration is greater than another. |
|
GreaterThanOrEqual | Determines whether a Duration is greater than or equal to another. |
|
Implicit(TimeSpan to Duration) | Implicitly creates a Duration from a given TimeSpan. |
|
Inequality | Determines if two Duration cases are not equal. |
|
LessThan | Determines if a Duration is less than the value of another instance. |
|
LessThanOrEqual | Determines if a Duration is less than or equal to another. |
|
Subtraction | Subtracts the value of one Duration from another. |
|
UnaryPlus | Returns the specified Duration. |
Show: