Reads a text-only element with a given name.
[Visual Basic] Overloads Public Function ReadString( _ ByVal name As String _ ) As String [C#] public string ReadString( string name ); [C++] public: String* ReadString( String* name ); [JScript] public function ReadString( name : String ) : String;
The text contained in the element that was read. If the element was empty (i.e. of the form
Exceptions
Exception Type | Condition |
---|---|
XmlException | If the input is not of the form |
A call to this method corresponds to a call to CheckStartTag followed by a call to ReadString.
XmlReader Class | XmlReader Members | System.Xml Namespace | XmlReader.ReadString Overload List | ReadString | ReadString | ReadString