Mono Class Library: System.Xml.XmlWriter Overview | Members

System.Xml.XmlWriter.WriteElementString Method

Writes an element with the specified local name and value.

public void WriteElementString (string localName, string value)

Parameters

localName
A string specifying the local name of the element.
value
A string specifying the value of the element.
value
Documentation for this section has not yet been entered.

Exceptions

TypeReason
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed.

Remarks

This method is equivalent to XmlWriter.WriteElementString(string, string)(localName, null, value).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0