TimeSpanStyles Enumeration

July 28, 2014

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
AssumeNegativeIndicates that input is always interpreted as a negative time interval.
NoneIndicates that input is interpreted as a negative time interval only if a negative sign is present.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2014 Microsoft