[This is preliminary documentation and is subject to change.]

Gets the current node's value as an Boolean.

Namespace: Tools.XmlT.XPathT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public override bool ValueAsBoolean { get; }
Visual Basic
Public Overrides ReadOnly Property ValueAsBoolean As Boolean
	Get
Visual C++
public:
virtual property bool ValueAsBoolean {
	bool get () override;
}
F#
abstract ValueAsBoolean : bool
override ValueAsBoolean : bool
JScript
override function get ValueAsBoolean () : boolean

Return Value

The current node's value as an Boolean. If ContextValue is IConvertible than ToBoolean(IFormatProvider) is used, otherwise ValueAsLong is called.

Exceptions

ExceptionCondition
System..::..FormatExceptionThe current node's string value cannot be converted to a Boolean.
System..::..InvalidCastExceptionThe attempted cast to Boolean is not valid.

See Also