Bridge

TimeSpan..::..ToString Method (String)

Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public string ToString(
	string format
)
Public Function ToString ( _
	format As String _
) As String
public:
String^ ToString(
	String^ format
)

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


ExceptionCondition
System..::..FormatExceptionThe format parameter is not recognized or is not supported.