Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TimeSpanStyles Enumeration

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 class TimeSpanStyles

Member nameDescription
Supported by Portable Class LibraryAssumeNegativeIndicates that input is always interpreted as a negative time interval.
Supported by Portable Class LibraryNoneIndicates that input is interpreted as a negative time interval only if a negative sign is present.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft