Click or drag to resize

Duration Methods

The Duration type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(Object)
Compares the value of this instance to a specified object which is expected to be a Duration value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified Duration value.
Public methodCompareTo(Duration)
Compares the value of this instance to a specified Duration value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).)
Public methodEquals(Duration)
Returns a value indicating whether the value of this instance is equal to the value of the specified Duration instance.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodToString
Converts the value of the current Duration object to its equivalent string representation.
(Overrides ObjectToString.)
Top
See Also