This documentation is archived and is not being maintained.

Duration Methods

The Duration type exposes the following members.

Public method Add Adds the value of the specified instance of Duration to the value of the current instance.
Public method Static member Compare Compares one Duration value to another.
Public method Equals(Duration) Determines whether a specified Duration is equal to this instance of Duration.
Public method Equals(Object) Determines whether a specified object is equal to an instance of Duration. (Overrides ValueType.Equals(Object).)
Public method Static member Equals(Duration, Duration) Determines whether two instances of Duration are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets a hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Plus Returns the specified instance of Duration.
Public method Subtract Subtracts the value of the specified instance of Duration from this instance.
Public method ToString Converts an instance of Duration to a String representation. (Overrides ValueType.ToString().)