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)
参数类型描述
localNameString元素的本地名称。
namespaceURIString元素的命名空间 URI。

ReturnValue

元素内容作为 DateTime 对象。

另见