ReadElementContentAsFloat()
Contents
[
Hide
]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.
Exceptions
| Exception | Description |
|---|---|
| InvalidOperationException | The XmlReader is not positioned on an element. |
| XmlException | The current element contains child elements. The element content cannot be converted to a single-precision floating-point number. |
| ArgumentNullException | The method is called with nullptr arguments. |
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
| Parameter | Type | Description |
|---|---|---|
| localName | String | The local name of the element. |
| namespaceURI | String | The namespace URI of the element. |
Return Value
The element content as a single-precision floating point number.
Exceptions
| Exception | Description |
|---|---|
| InvalidOperationException | The XmlReader is not positioned on an element. |
| XmlException | The current element contains child elements. The element content cannot be converted to a single-precision floating-point number. |
| ArgumentNullException | The method is called with nullptr arguments. |
| ArgumentException | The specified local name and namespace URI do not match that of the current element being read. |
See Also
- Class XmlReader
- Class String
- Namespace System::Xml
- Library Aspose.Slides