TimeSpanStyles Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

[FlagsAttribute]
public enum TimeSpanStyles

Member nameDescription
AssumeNegative

Indicates that input is always interpreted as a negative time interval.

None

Indicates that input is interpreted as a negative time interval only if a negative sign is present.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Windows Phone
Available since 8.1
Return to top
Show: