Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlDictionaryReader::ReadElementContentAsDateTime Method ()

 

Converts an element's content to a DateTime.

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

public:
virtual DateTime ReadElementContentAsDateTime() override

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:
© 2017 Microsoft