Click or drag to resize
XmlReaderReadElementContentAsString Method
Reads the current element and returns the contents as a String object.

Namespace: System.Xml
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
public virtual string ReadElementContentAsString()

Return Value

Type: String
The element content as a String object.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe XmlReader is not positioned on an element.
XmlExceptionThe current element contains child elements.-or-The element content cannot be converted to a String object.
ArgumentNullExceptionThe method is called with null arguments.
See Also