Duration Class |
Namespace: Ranorex
The Duration type exposes the following members.
| Name | Description | |
|---|---|---|
| Duration |
Constructs a new instance and initializes it with the value of
Zero.
| |
| Duration(Int32) |
Constructs a new instance and initializes it with the given number
of milliseconds.
| |
| Duration(TimeSpan) |
Constructs a new instance and initializes it with the value of
the given TimeSpan.
|
| Name | Description | |
|---|---|---|
| Milliseconds |
Gets the number of milliseconds this instance represents.
| |
| TimeSpan |
Gets a TimeSpan representation of this instance.
|
| 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) |
Indicates whether the current Duration is equal to another 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 |
Returns a new Duration instance initialized by the TimeSpan value.
| |
| 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 |
Returns a TimeSpan value corresponding to the Duration instance.
| |
| TryParse |
Tries parsing the given String to a Duration instance.
|
| Name | Description | |
|---|---|---|
| Addition(Int32, Duration) |
Adds two values.
| |
| Addition(TimeSpan, Duration) |
Adds two values.
| |
| Addition(Duration, Duration) |
Adds two values.
| |
| Addition(Duration, Int32) |
Adds two values.
| |
| Addition(Duration, TimeSpan) |
Adds two values.
| |
| Equality |
Returns true if the two Duration instances are equal.
| |
| GreaterThan(Int32, Duration) |
Returns whether left is greater than right.
| |
| GreaterThan(TimeSpan, Duration) |
Returns whether left is greater than right.
| |
| GreaterThan(Duration, Duration) |
Returns whether left is greater than right.
| |
| GreaterThan(Duration, Int32) |
Returns whether left is greater than right.
| |
| GreaterThan(Duration, TimeSpan) |
Returns whether left is greater than right.
| |
| GreaterThanOrEqual(Int32, Duration) |
Returns whether left is greater than or equal to right.
| |
| GreaterThanOrEqual(TimeSpan, Duration) |
Returns whether left is greater than or equal to right.
| |
| GreaterThanOrEqual(Duration, Duration) |
Returns whether left is greater than or equal to right.
| |
| GreaterThanOrEqual(Duration, Int32) |
Returns whether left is greater than or equal to right.
| |
| GreaterThanOrEqual(Duration, TimeSpan) |
Returns whether left is greater than or equal to right.
| |
| (Int32 to Duration) |
Returns a new Duration instance initialized by the milliseconds value.
| |
| (TimeSpan to Duration) |
Returns a new Duration instance initialized by the TimeSpan value.
| |
| (Duration to Int32) |
Returns the number of milliseconds represented by the Duration instance.
| |
| (Duration to TimeSpan) |
Returns a TimeSpan value corresponding to the Duration instance.
| |
| Inequality |
Returns true if the two Duration instances are not equal.
| |
| LessThan(Int32, Duration) |
Returns whether left is less than right.
| |
| LessThan(TimeSpan, Duration) |
Returns whether left is less than right.
| |
| LessThan(Duration, Duration) |
Returns whether left is less than right.
| |
| LessThan(Duration, Int32) |
Returns whether left is less than right.
| |
| LessThan(Duration, TimeSpan) |
Returns whether left is less than right.
| |
| LessThanOrEqual(Int32, Duration) |
Returns whether left is less than or equal to right.
| |
| LessThanOrEqual(TimeSpan, Duration) |
Returns whether left is less than or equal to right.
| |
| LessThanOrEqual(Duration, Duration) |
Returns whether left is less than or equal to right.
| |
| LessThanOrEqual(Duration, Int32) |
Returns whether left is less than or equal to right.
| |
| LessThanOrEqual(Duration, TimeSpan) |
Returns whether left is less than or equal to right.
| |
| Multiply |
Multiplies a duration by the specified factor.
| |
| Subtraction(Int32, Duration) |
Subtracts two values.
| |
| Subtraction(TimeSpan, Duration) |
Subtracts two values.
| |
| Subtraction(Duration, Duration) |
Subtracts two values.
| |
| Subtraction(Duration, Int32) |
Subtracts two values.
| |
| Subtraction(Duration, TimeSpan) |
Subtracts two values.
|
| Name | Description | |
|---|---|---|
| MaxValue |
Represents the maximum Duration value. This field is read-only.
| |
| MinValue |
Represents the minimum Duration value. This field is read-only.
| |
| Zero |
Represents the zero Duration value. This field is read-only.
|