[This is preliminary documentation and is subject to change.]
Constructs a new TimeSpanFormattable object from a time interval specified in a string.
Namespace:
ToolsAssembly: 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# |
|---|
|
| JScript |
|---|
|
Parameters
- s
- Type: System..::.String
A string that specifies a time interval.
Return Value
A TimeSpanFormattable that corresponds to s.
Exceptions
| Exception | Condition |
|---|---|
| System..::.FormatException | s has an invalid format. |
| System..::.ArgumentNullException | s is null. |
| System..::.OverflowException | s 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. |