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

Gets the current node's value as an Int64.

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

Syntax

C#
public override long ValueAsLong { get; }
Visual Basic
Public Overrides ReadOnly Property ValueAsLong As Long
	Get
Visual C++
public:
virtual property long long ValueAsLong {
	long long get () override;
}
F#
abstract ValueAsLong : int64
override ValueAsLong : int64
JScript
override function get ValueAsLong () : long

Return Value

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

Exceptions

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

See Also