System.Xml.XmlWriter.WriteStartElement Method

When overridden in a derived class, writes out a start tag with the specified local name.

Syntax

public void WriteStartElement (string localName)

Parameters

localName
The local name of the element.

Exceptions

TypeReason
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed.

Remarks

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

Requirements

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