XPathAtomicValue.ValueAsBoolean PropertyXPathAtomicValue.ValueAsBoolean PropertyXPathAtomicValue::ValueAsBoolean Property

Gets the item's value as a boolBooleanbool.

Syntax

Public Overrides ReadOnly Property ValueAsBoolean As Boolean
        Get
public override bool ValueAsBoolean { get; }
public:
virtual property bool ValueAsBoolean {
    bool get();
}
 

Property Value

Type: System.BooleanSystem.BooleanSystem::Boolean

The item's value as a boolBooleanbool.

Exceptions

ExceptionCondition
FormatExceptionFormatExceptionFormatExceptionThe value was not a valid lexical value for xs:boolean.
InvalidCastExceptionInvalidCastExceptionInvalidCastExceptionThe value cannot be cast to xs:boolean.