System.Xml.XmlWriter.WriteElementString Method

Writes an element with the specified prefix, local name, namespace URI, and value.

Syntax

public void WriteElementString (string prefix, string localName, string ns, string value)

Parameters

prefix
The prefix of the element.
localName
The local name of the element.
ns
The namespace URI of the element.
value
The value of the element.

Remarks

For the asynchronous version of this method, see XmlWriter.WriteElementStringAsync(string, string, string, string).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0