Export (0) Print
Expand All

TimeSpan Members

Represents a time interval.

The following tables list the members exposed by the TimeSpan type.

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework TimeSpan Overloaded. Initializes a new TimeSpan.
Top

  Name Description
Public field Static 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 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 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 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 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 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 Supported by the .NET Compact Framework Supported by the XNA Framework TicksPerSecond Represents the number of ticks in 1 second.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework Zero Represents the zero TimeSpan value. This field is read-only.
Top

  Name Description
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Days Gets the number of whole days represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Hours Gets the number of whole hours represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Milliseconds Gets the number of whole milliseconds represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Minutes Gets the number of whole minutes represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Seconds Gets the number of whole seconds 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

  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:
© 2014 Microsoft