[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 explicit operator TimeSpanFormattable (
	string s
)
Visual Basic
Public Shared Narrowing Operator CType ( _
	s As String _
) As TimeSpanFormattable
Visual C++
static explicit operator TimeSpanFormattable (
	String^ s
)
F#
F# does not support the declaration of new casting operators.
JScript
JScript does not support the declaration of new casting operators.

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