XmlSerializationReader.ToDateTime(String) 方法

定义

从输入字符串生成一个 DateTime 对象。Produces a DateTime object from an input string.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 static DateTime ToDateTime(System::String ^ value);
protected static DateTime ToDateTime (string value);
static member ToDateTime : string -> DateTime
Protected Shared Function ToDateTime (value As String) As DateTime

参数

value
String

要转换为 DateTime 对象的字符串。A string to translate into a DateTime object.

返回

DateTime

DateTime 对象。A DateTime object.

注解

的受保护成员 XmlSerializationReader 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

ToDateTime 方法是静态的。The ToDateTime method is static.

适用于