Mono Class Library: System.Xml.XmlConvert Overview | Members

System.Xml.XmlConvert.ToTimeSpan Method

Converts a string to a TimeSpan equivalent.

public static TimeSpan ToTimeSpan (string s)

Parameters

s
The string to convert.

Returns

The TimeSpan equivalent of s.

Exceptions

TypeReason
FormatExceptions is not in the correct format to represent a TimeSpan value.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0