System::Xml::XmlReader::ReadElementContentAsDateTime 方法

XmlReader::ReadElementContentAsDateTime() method

读取当前元素并将内容作为 DateTime 对象返回。

virtual DateTime System::Xml::XmlReader::ReadElementContentAsDateTime()

ReturnValue

作为 DateTime 对象的元素内容。

另见

XmlReader::ReadElementContentAsDateTime(String, String) method

检查指定的本地名称和命名空间 URI 是否与当前元素匹配,然后读取当前元素并将内容作为 DateTime 对象返回。

virtual DateTime System::Xml::XmlReader::ReadElementContentAsDateTime(String localName, String namespaceURI)
ParameterType描述
localName字符串元素的本地名称。
namespaceURI字符串元素的命名空间 URI。

ReturnValue

作为 DateTime 对象的元素内容。

另见