Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TimeSpan Methods

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Add Adds the specified TimeSpan to this instance.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework Compare Compares two TimeSpan values and returns an integer that indicates their relationship.
Public method Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA 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 Supported by the XNA Framework Equals Overloaded. Overridden. Returns a value indicating whether two instances of TimeSpan are equal.
Public method Static Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA 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 Supported by the XNA Framework FromMilliseconds Returns a TimeSpan that represents a specified number of milliseconds.
Public method Static Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA 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 Supported by the XNA 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 Supported by the XNA Framework GetHashCode Overridden. Returns a hash code for this instance.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Negate Returns a TimeSpan whose value is the negated value of this instance.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework op_Addition Adds two specified TimeSpan instances.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework op_Equality Indicates whether two TimeSpan instances are equal.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework op_GreaterThan Indicates whether a specified TimeSpan is greater than another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA Framework op_Inequality Indicates whether two TimeSpan instances are not equal.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework op_LessThan Indicates whether a specified TimeSpan is less than another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA Framework op_Subtraction Subtracts a specified TimeSpan from another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA 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 Supported by the XNA Framework Subtract Subtracts the specified TimeSpan from this instance.
Public method Supported by the .NET Compact Framework Supported by the XNA 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

Community Additions

ADD
Show:
© 2015 Microsoft