Windows apps
Collapse the table of content
Expand the table of content
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 Properties

The properties of the TimeSpan structure are listed here. For a complete list of TimeSpan structure members, see the TimeSpan Members topic.

Public Properties

public propertyDays

Supported by the .NET Compact Framework.

Gets the number of whole days represented by this instance.
public propertyHours

Supported by the .NET Compact Framework.

Gets the number of whole hours represented by this instance.
public propertyMilliseconds

Supported by the .NET Compact Framework.

Gets the number of whole milliseconds represented by this instance.
public propertyMinutes

Supported by the .NET Compact Framework.

Gets the number of whole minutes represented by this instance.
public propertySeconds

Supported by the .NET Compact Framework.

Gets the number of whole seconds represented by this instance.
public propertyTicks

Supported by the .NET Compact Framework.

Gets the value of this instance in ticks.
public propertyTotalDays

Supported by the .NET Compact Framework.

Gets the value of this instance expressed in whole and fractional days.
public propertyTotalHours

Supported by the .NET Compact Framework.

Gets the value of this instance expressed in whole and fractional hours.
public propertyTotalMilliseconds

Supported by the .NET Compact Framework.

Gets the value of this instance expressed in whole and fractional milliseconds.
public propertyTotalMinutes

Supported by the .NET Compact Framework.

Gets the value of this instance expressed in whole and fractional minutes.
public propertyTotalSeconds

Supported by the .NET Compact Framework.

Gets the value of this instance expressed in whole and fractional seconds.

See Also

TimeSpan Structure | System Namespace

Show:
© 2017 Microsoft