RanorexRanorex Documentation
Duration Class
NamespacesRanorexDuration
Represents a span of time.
Declaration Syntax
C#Visual BasicVisual C++
[SerializableAttribute]
public class Duration : IFormattable, IComparable<Duration>, 
	IComparable, IEquatable<Duration>
<SerializableAttribute> _
Public Class Duration _
	Implements IFormattable, IComparable(Of Duration),  _
	IComparable, IEquatable(Of Duration)
[SerializableAttribute]
public ref class Duration : IFormattable, 
	IComparable<Duration^>, IComparable, IEquatable<Duration^>
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
Duration(TimeSpan)
Constructs a new instance and initializes it with the value of the given TimeSpan.

Duration(Int32)
Constructs a new instance and initializes it with the given number of milliseconds.

Compare(Duration, Duration)
Compares two Duration objects and returns an indication of their relative values.

CompareTo(Duration)
Compares the current duration with another duration object.

CompareTo(Object)
Compares the current duration with another object of the same type.

Equality(Duration, Duration)
Returns true if the two Duration instances are equal.

Equals(Duration)
Indicates whether the current Duration is equal to another Duration.

Equals(Object)
Returns true if the two objects are equal.
(Overrides Object.Equals(Object).)
Finalize()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Gets a hash code for this instance.
(Overrides Object.GetHashCode()()().)
GetType()()()
Gets the type of the current instance.
(Inherited from Object.)
Implicit(Duration)
Returns the number of milliseconds represented by the Duration instance.

Implicit(Int32)
Returns a new Duration instance initialized by the milliseconds value.

Implicit(Duration)
Returns a TimeSpan value corresponding to the Duration instance.

Implicit(TimeSpan)
Returns a new Duration instance initialized by the TimeSpan value.

Inequality(Duration, Duration)
Returns true if the two Duration instances are not equal.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Milliseconds
Gets the number of milliseconds this instance represents.

Multiply(Duration, Double)
Multiplies a duration by the specified factor.

Parse(String)
Parses the given String and returns a new Duration instance.

TimeSpan
Gets a TimeSpan representation of this instance.

ToString()()()
Returns a string represenation of this instance.
(Overrides Object.ToString()()().)
ToString(String)
Returns a string represenation of this instance.

ToString(String, IFormatProvider)
Returns a string represenation of this instance.

TryParse(String, Duration%)
Tries parsing the given String to a Duration instance.

Zero
Represents the zero Duration value. This field is read-only.

Remarks
This class facilitates creating objects that represent a span of time by providing initializers that take an Int32 (regarded as milliseconds) or a TimeSpan.
Inheritance Hierarchy
Object
Duration

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.4.23593 (4.0.4.23593)