ReadElementContentAsDateTime Method
Collapse the table of content
Expand the table of content

XmlDictionaryReader.ReadElementContentAsDateTime Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts an element's content to a DateTime.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public override DateTime ReadElementContentAsDateTime()

Return Value

Type: System.DateTime
The node's content represented as a DateTime.


The element is not in valid format.


The element is not in valid format.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft