XmlWriter::WriteStartElement Method
.NET Framework (current version)
When overridden in a derived class, writes the specified start tag.
Assembly: System.Xml (in System.Xml.dll)
| Name | Description | |
|---|---|---|
![]() | WriteStartElement(String^) | When overridden in a derived class, writes out a start tag with the specified local name. |
![]() | WriteStartElement(String^, String^) | When overridden in a derived class, writes the specified start tag and associates it with the given namespace. |
![]() | WriteStartElement(String^, String^, String^) | When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix. |
| Exception | Condition |
|---|---|
| InvalidOperationException | An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
For the asynchronous version of this method, see WriteStartElementAsync.
Show:
