get_ValueAsDateTime()

XPathNavigator::get_ValueAsDateTime() method

Returns the current node’s value as a DateTime.

DateTime System::Xml::XPath::XPathNavigator::get_ValueAsDateTime() override

Return Value

The current node’s value as a DateTime.

Exceptions

ExceptionDescription
FormatExceptionThe current node’s string value cannot be converted to a DateTime.
InvalidCastExceptionThe attempted cast to DateTime is not valid.

See Also