get_ValueAsDateTime()

XPathItem::get_ValueAsDateTime() method

When overridden in a derived class, gets the item’s value as a DateTime.

virtual DateTime System::Xml::XPath::XPathItem::get_ValueAsDateTime()=0

Return Value

The item’s value as a DateTime.

Exceptions

ExceptionDescription
FormatExceptionThe item’s value is not in the correct format for the DateTime type.
InvalidCastExceptionThe attempted cast to DateTime is not valid.

See Also