XPathAtomicValue.ValueAsSingle PropertyXPathAtomicValue.ValueAsSingle PropertyXPathAtomicValue::ValueAsSingle Property

Gets the item's value as a floatSinglefloat.

Syntax

Public Overridable ReadOnly Property ValueAsSingle As Single
        Get
public virtual float ValueAsSingle { get; }
public:
virtual property float ValueAsSingle {
    float get();
}
 

Property Value

Type: System.SingleSystem.SingleSystem::Single

The item's value as a floatSinglefloat.

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionThe value was too large to be stored in a floatSinglefloat
FormatExceptionFormatExceptionFormatExceptionThe value was not a valid lexical value for xs:float.
InvalidCastExceptionInvalidCastExceptionInvalidCastExceptionThe value cannot be cast to xs:float.