[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.2.0

Syntax

C#
public static explicit operator TimeSpanFormattable (
	string s
)
Visual Basic (Declaration)
Public Shared Narrowing Operator CType ( _
	s As String _
) As TimeSpanFormattable
Visual C++
static explicit operator TimeSpanFormattable (
	String^ s
)
J#
J# does not support overloaded 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