ReadElementContentAsFloat()

XmlReader::ReadElementContentAsFloat() method

Reads the current element and returns the contents as single-precision floating-point number.

virtual float System::Xml::XmlReader::ReadElementContentAsFloat()

Return Value

The element content as a single-precision floating point number.

XmlReader::ReadElementContentAsFloat(String, String) method

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a single-precision floating-point number.

virtual float System::Xml::XmlReader::ReadElementContentAsFloat(String localName, String namespaceURI)

Arguments

ParameterTypeDescription
localNameStringThe local name of the element.
namespaceURIStringThe namespace URI of the element.

Return Value

The element content as a single-precision floating point number.

See Also