TimeSpan..::..ToString Method (String)
Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
Parameters
- format
- Type: System..::..String
A standard or custom TimeSpan format string.
Return Value
The string representation of the current TimeSpan value in the format specified by the format parameter.Exceptions
Exception | Condition |
---|---|
System..::..FormatException | The format parameter is not recognized or is not supported. |