Condividi tramite


TimeSpan.TotalMinutes Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property TotalMinutes As Double
public double TotalMinutes { get; }

Property Value

Type: System.Double
The total number of minutes represented by this instance.

Remarks

This property converts the value of this instance from ticks to minutes. This number might include whole and fractional minutes.

Examples

The following example instantiates a TimeSpan object and displays the value of its TotalMinutes property. It also displays the value of each component (seconds, milliseconds) that forms the fractional part of the value of its TotalMinutes property.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.