get_ValueAsBoolean()

XPathNavigator::get_ValueAsBoolean() method

Returns the current node’s value as a Boolean.

bool System::Xml::XPath::XPathNavigator::get_ValueAsBoolean() override

Return Value

The current node’s value as a Boolean.

Exceptions

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

See Also