get_ValueAsDateTime()

XmlAtomicValue::get_ValueAsDateTime() method

Returns the validated XML element or attribute’s value as a DateTime.

DateTime System::Xml::Schema::XmlAtomicValue::get_ValueAsDateTime() override

Return Value

The validated XML element or attribute’s value as a DateTime.

Exceptions

ExceptionDescription
FormatExceptionThe validated XML element or attribute’s value is not in the correct format for the DateTime type.
InvalidCastExceptionThe attempted cast to DateTime is not valid.

See Also