Duration Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the duration of time that a Timeline is active.
public value class Duration
[System.Security.SecurityCritical]
public struct Duration
[<System.Security.SecurityCritical>]
type Duration = struct
Public Structure Duration
- Inheritance
- Attributes
This struct represents the .NET projection of the Windows Runtime (WinRT) Duration
struct. For more information, see Duration in the UWP API reference.
Duration(Time |
Initializes a new instance of the Duration struct with the specified TimeSpan value. |
Automatic |
Gets a Duration value that is automatically determined. |
Forever |
Gets a Duration value that represents an infinite interval. |
Has |
Gets a value that indicates if this Duration represents a TimeSpan value. |
Time |
Add(Duration) | |
Compare(Duration, Duration) |
Compares one Duration value to another. |
Equals(Duration, Duration) |
Determines whether two Duration values are equal. |
Equals(Duration) |
Determines whether a specified Duration is equal to this Duration. |
Equals(Object) |
Determines whether a specified object is equal to a Duration. |
Get |
Gets a hash code for this object. |
Subtract(Duration) | |
To |
Addition(Duration, Duration) |
Adds two Duration values together. |
Equality(Duration, Duration) |
Determines whether two Duration cases are equal. |
Greater |
Determines if one Duration is greater than another. |
Greater |
Determines whether a Duration is greater than or equal to another. |
Implicit(Time |
|
Inequality(Duration, Duration) |
Determines if two Duration cases are not equal. |
Less |
Determines if a Duration is less than the value of another instance. |
Less |
Determines if a Duration is less than or equal to another. |
Subtraction(Duration, Duration) |
Subtracts the value of one Duration from another. |
Unary |
Returns the specified Duration. |
Product | Versions |
---|---|
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: