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

Gets the current node's value as an Int32.

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

Syntax

C#
public override int ValueAsInt { get; }
Visual Basic
Public Overrides ReadOnly Property ValueAsInt As Integer
	Get
Visual C++
public:
virtual property int ValueAsInt {
	int get () override;
}
F#
abstract ValueAsInt : int
override ValueAsInt : int
JScript
override function get ValueAsInt () : int

Return Value

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

Exceptions

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

See Also