Duration Methods

Duration Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Duration type exposes the following members.

  NameDescription
Public method Add Adds the value of the specified Duration to this Duration.
Public method Static member Compare Compares one Duration value to another.
Public method Equals(Duration) Determines whether a specified Duration is equal to this Duration.
Public method Equals(Object) Determines whether a specified object is equal to a Duration. (Overrides ValueType.Equals(Object).)
Public method Static member Equals(Duration, Duration) Determines whether two Duration values are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets a hash code for this object. (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 Adds one Duration to this Duration.
Public method Subtract Subtracts the specified Duration from this Duration.
Public method ToString Converts a Duration to a String representation. (Overrides ValueType.ToString().)
Top

Show:
© 2017 Microsoft