| XmlReaderReadElementContentAsString Method | 
Namespace: System.Xml
 Syntax
Syntaxpublic virtual string ReadElementContentAsString()
 Exceptions
Exceptions| 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. | 
 See Also
See Also