Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TimeSpan Methods

  Name Description
Public method Supported by the .NET Compact Framework Add Adds the specified TimeSpan to this instance.
Public method Static Supported by the .NET Compact Framework Compare Compares two TimeSpan values and returns an integer that indicates their relationship.
Public method Supported by the .NET Compact Framework CompareTo Overloaded. Compares this instance to a specified object or TimeSpan and returns an indication of their relative values.
Public method Supported by the .NET Compact Framework Duration Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.
Public method Supported by the .NET Compact Framework Equals Overloaded. Overridden. Returns a value indicating whether two instances of TimeSpan are equal.
Public method Static Supported by the .NET Compact Framework FromDays Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromHours Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromMilliseconds Returns a TimeSpan that represents a specified number of milliseconds.
Public method Static Supported by the .NET Compact Framework FromMinutes Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromSeconds Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromTicks Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.
Public method Supported by the .NET Compact Framework GetHashCode Overridden. Returns a hash code for this instance.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Negate Returns a TimeSpan whose value is the negated value of this instance.
Public method Static Supported by the .NET Compact Framework op_Addition Adds two specified TimeSpan instances.
Public method Static Supported by the .NET Compact Framework op_Equality Indicates whether two TimeSpan instances are equal.
Public method Static Supported by the .NET Compact Framework op_GreaterThan Indicates whether a specified TimeSpan is greater than another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_GreaterThanOrEqual Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_Inequality Indicates whether two TimeSpan instances are not equal.
Public method Static Supported by the .NET Compact Framework op_LessThan Indicates whether a specified TimeSpan is less than another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_LessThanOrEqual Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_Subtraction Subtracts a specified TimeSpan from another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_UnaryNegation Returns a TimeSpan whose value is the negated value of the specified instance.
Public method Static op_UnaryPlus Returns the specified instance of TimeSpan.
Public method Static Supported by the .NET Compact Framework Parse Constructs a new TimeSpan object from a time interval specified in a string.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Subtract Subtracts the specified TimeSpan from this instance.
Public method Supported by the .NET Compact Framework ToString Overridden. Returns the string representation of the value of this instance.
Public method Static TryParse Constructs a new TimeSpan object from a time interval specified in a string. Parameters specify the time interval and the variable where the new TimeSpan object is returned.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft