[This is preliminary documentation and is subject to change.]
Gets the current node's value as an Double.
Namespace: Tools.XmlT.XPathTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public override double ValueAsDouble { get; } |
| Visual Basic |
|---|
Public Overrides ReadOnly Property ValueAsDouble As Double Get |
| Visual C++ |
|---|
public: virtual property double ValueAsDouble { double get () override; } |
| F# |
|---|
abstract ValueAsDouble : float override ValueAsDouble : float |
| JScript |
|---|
override function get ValueAsDouble () : double |
Return Value
The current node's value as an Double. If ContextValue is IConvertible than ToDouble(IFormatProvider) is used, otherwise ValueAsLong is called.
Exceptions
| Exception | Condition |
|---|---|
| System..::..FormatException | The current node's string value cannot be converted to a Double. |
| System..::..InvalidCastException | The attempted cast to Double is not valid. |