1 out of 5 rated this helpful - Rate this topic

TimeSpan Members

Represents a time interval.

The TimeSpan type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework TimeSpan Overloaded. Initializes a new TimeSpan.
Top
  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Add Returns a new TimeSpan object whose value is the sum of the specified TimeSpan object and this instance.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Compare Compares two TimeSpan values and returns an integer that indicates whether the first value is shorter than, equal to, or longer than the second value.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CompareTo Overloaded. Compares this instance to a specified object or TimeSpan object and returns an integer that indicates whether this instance is shorter than, equal to, or longer than the specified object or TimeSpan object.
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 Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equals Overloaded. Returns a value indicating whether two instances of TimeSpan are equal.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Static member 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 member 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 member 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 member 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 member 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 member 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 Returns a hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Negate Returns a new TimeSpan object whose value is the negated value of this instance.
Public method Static member 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 Supported by the .NET Compact Framework Supported by the XNA Framework Subtract Returns a new TimeSpan object whose value is the difference between the specified TimeSpan object and this instance.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns the string representation of the value of this instance. (Overrides ValueType.ToString().)
Public method Static member 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
  NameDescription
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Addition Adds two specified TimeSpan instances.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equality Indicates whether two TimeSpan instances are equal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework GreaterThan Indicates whether a specified TimeSpan is greater than another specified TimeSpan.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework GreaterThanOrEqual Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Inequality Indicates whether two TimeSpan instances are not equal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework LessThan Indicates whether a specified TimeSpan is less than another specified TimeSpan.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework LessThanOrEqual Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Subtraction Subtracts a specified TimeSpan from another specified TimeSpan.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework UnaryNegation Returns a TimeSpan whose value is the negated value of the specified instance.
Public operator Static member UnaryPlus Returns the specified instance of TimeSpan.
Top
  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework MaxValue Represents the maximum TimeSpan value. This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework MinValue Represents the minimum TimeSpan value. This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework TicksPerDay Represents the number of ticks in 1 day. This field is constant.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework TicksPerHour Represents the number of ticks in 1 hour. This field is constant.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework TicksPerMillisecond Represents the number of ticks in 1 millisecond. This field is constant.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework TicksPerMinute Represents the number of ticks in 1 minute. This field is constant.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework TicksPerSecond Represents the number of ticks in 1 second.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework Zero Represents the zero TimeSpan value. This field is read-only.
Top
  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Days Gets the days component of the time interval represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Hours Gets the hours component of the time interval represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Milliseconds Gets the milliseconds component of the time interval represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Minutes Gets the minutes component of the time interval represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Seconds Gets the seconds component of the time interval represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Ticks Gets the number of ticks that represent the value of the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TotalDays Gets the value of the current TimeSpan structure expressed in whole and fractional days.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TotalHours Gets the value of the current TimeSpan structure expressed in whole and fractional hours.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TotalMilliseconds Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TotalMinutes Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TotalSeconds Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.