Duration Methods |
The Duration type exposes the following members.
| Name | Description | |
|---|---|---|
| Compare |
Compares two Duration objects and returns an indication of their relative values.
| |
| CompareTo(Object) |
Compares the current duration with another object of the same type.
| |
| CompareTo(Duration) |
Compares the current duration with another duration object.
| |
| Copy |
Returns a copy of the specified duration.
| |
| Equals(Object) |
Returns true if the two objects are equal.
(Overrides ObjectEquals(Object).) | |
| Equals(Duration) | ||
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FromMilliseconds |
Returns a new Duration instance initialized by the milliseconds value.
| |
| FromTimeSpan | ||
| GetHashCode |
Gets a hash code for this instance.
(Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Parse |
Parses the given String and returns a new Duration instance.
| |
| ToMilliseconds |
Returns the number of milliseconds represented by the Duration instance.
| |
| ToString |
Returns a string representation of this instance.
(Overrides ObjectToString.) | |
| ToString(String) |
Returns a string representation of this instance.
| |
| ToString(String, IFormatProvider) |
Returns a string representation of this instance.
| |
| ToTimeSpan | ||
| TryParse |
Tries parsing the given String to a Duration instance.
|