System::Xml::XmlConvert::ToTimeSpan 方法

XmlConvert::ToTimeSpan method

String 转换为 TimeSpan 等价类型。

static TimeSpan System::Xml::XmlConvert::ToTimeSpan(const String &s)
参数类型描述
sconst String&要转换的字符串。字符串格式必须符合 W3C XML Schema 第 2 部分:数据类型关于持续时间的建议。

ReturnValue

字符串的 TimeSpan 等价类型。

另见