XmlConvert.ToTimeSpan(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
static TimeSpan ToTimeSpan(System::String ^ s);
public static TimeSpan ToTimeSpan (string s);
static member ToTimeSpan : string -> TimeSpan
Public Shared Function ToTimeSpan (s As String) As TimeSpan
Parameters
- s
- String
The string to convert. The string format must conform to the W3C XML Schema Part 2: Datatypes recommendation for duration.
Returns
A TimeSpan
equivalent of the string.
Exceptions
s
is not in correct format to represent a TimeSpan
value.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.