XmlDictionaryReader.ReadElementContentAsDateTime Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: