Click or drag to resize
Ranorex

Duration Methods

The Duration type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCompare
Compares two Duration objects and returns an indication of their relative values.
Public methodCompareTo(Object)
Compares the current duration with another object of the same type.
Public methodCompareTo(Duration)
Compares the current duration with another duration object.
Public methodStatic memberCopy
Returns a copy of the specified duration.
Public methodEquals(Object)
Returns true if the two objects are equal.
(Overrides ObjectEquals(Object).)
Public methodEquals(Duration)
Indicates whether the current Duration is equal to another Duration.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromMilliseconds
Returns a new Duration instance initialized by the milliseconds value.
Public methodStatic memberFromTimeSpan
Returns a new Duration instance initialized by the TimeSpan value.
Public methodGetHashCode
Gets a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse
Parses the given String and returns a new Duration instance.
Public methodStatic memberToMilliseconds
Returns the number of milliseconds represented by the Duration instance.
Public methodToString
Returns a string representation of this instance.
(Overrides ObjectToString.)
Public methodToString(String)
Returns a string representation of this instance.
Public methodToString(String, IFormatProvider)
Returns a string representation of this instance.
Public methodStatic memberToTimeSpan
Returns a TimeSpan value corresponding to the Duration instance.
Public methodStatic memberTryParse
Tries parsing the given String to a Duration instance.
Top
See Also