Share via


XmlReader.ReadElementString Method (String)

Checks that the Name property of the element found matches the given string before reading a text-only element.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

public virtual string ReadElementString (
         stringname
)

Parameters

  • name
    The Name to check.

Return Value

The text contained in the element that was read. An empty string if the element is empty ( or ).

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace