XmlDictionaryReader.ReadElementContentAsDateTime Method ()

 

Converts an element's content to a DateTime.

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

override ReadElementContentAsDateTime : unit -> DateTime

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: