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

System.Xml.XmlConvert.ToTimeSpan Method

Converts a string to a TimeSpan equivalent. [Edit]

public static TimeSpan ToTimeSpan (string s)

Parameters

s
The string to convert. [Edit]

Returns

The TimeSpan equivalent of s. [Edit]

Exceptions

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

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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