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

XmlDictionaryReader.ReadElementContentAsDateTime Method ()

 

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.

Exception Condition
ArgumentException

The element is not in valid format.

FormatException

The element is not in valid format.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft