XmlWriter.WriteStartElement Method

 

When overridden in a derived class, writes the specified start tag.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

NameDescription
System_CAPS_pubmethodWriteStartElement(String)

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

System_CAPS_pubmethodWriteStartElement(String, String)

When overridden in a derived class, writes the specified start tag and associates it with the given namespace.

System_CAPS_pubmethodWriteStartElement(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.

Return to top
Show: