TimeSpanStyles Enumeration

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

Defines the formatting options that customize string parsing for the TimeSpan.ParseExact and TimeSpan.TryParseExact methods.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration TimeSpanStyles
[FlagsAttribute]
public enum TimeSpanStyles

Members

Member name Description
Supported by Silverlight for Windows Phone None Indicates that input is interpreted as a negative time interval only if a negative sign is present.
Supported by Silverlight for Windows Phone AssumeNegative Indicates that input is always interpreted as a negative time interval.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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