| XmlReaderReadElementContentAsString Method |
Namespace: System.Xml
public virtual string ReadElementContentAsString()
| Exception | Condition |
|---|---|
| InvalidOperationException | The XmlReader is not positioned on an element. |
| XmlException | The current element contains child elements.-or-The element content cannot be converted to a String object. |
| ArgumentNullException | The method is called with null arguments. |