XmlDictionaryReader.ReadElementContentAsDateTime XmlDictionaryReader.ReadElementContentAsDateTime XmlDictionaryReader.ReadElementContentAsDateTime XmlDictionaryReader.ReadElementContentAsDateTime Method

定义

将元素内容转换为 DateTimeConverts an element's content to a DateTime.

public:
 override DateTime ReadElementContentAsDateTime();
public override DateTime ReadElementContentAsDateTime ();
override this.ReadElementContentAsDateTime : unit -> DateTime
Public Overrides Function ReadElementContentAsDateTime () As DateTime

返回

DateTime 形式表示的节点内容。The node's content represented as a DateTime.

异常

元素的格式无效。The element is not in valid format.

元素的格式无效。The element is not in valid format.

适用于