[This is preliminary documentation and is subject to change.]

Constructs a new TimeSpanFormattable object from a time interval specified in a string.

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static TimeSpanFormattable Parse(
	string s
)
Visual Basic
Public Shared Function Parse ( _
	s As String _
) As TimeSpanFormattable
Visual C++
public:
static TimeSpanFormattable Parse(
	String^ s
)
F#
static member Parse : 
        s:string -> TimeSpanFormattable 
JScript
public static function Parse(
	s : String
) : TimeSpanFormattable

Parameters

s
Type: System..::..String
A string that specifies a time interval.

Return Value

A TimeSpanFormattable that corresponds to s.

Exceptions

ExceptionCondition
System..::..FormatExceptions has an invalid format.
System..::..ArgumentNullExceptions is null.
System..::..OverflowExceptions represents a number less than MinValue or greater than MaxValue.-or- At least one of the days, hours, minutes, or seconds components is outside its valid range.

See Also