ReadContentAsDateTime()

XmlReader::ReadContentAsDateTime() method

Reads the text content at the current position as a DateTime object.

virtual DateTime System::Xml::XmlReader::ReadContentAsDateTime()

Return Value

The text content as a DateTime object.

Exceptions

ExceptionDescription
InvalidCastExceptionThe attempted cast is not valid.
FormatExceptionThe string format is not valid.

See Also