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

System.Xml.XmlTextWriter.WriteEndAttribute Method

Closes the attribute started with the XmlTextWriter.WriteStartAttribute(string, string, string) method.

public override void WriteEndAttribute ()

Exceptions

TypeReason
InvalidOperationExceptionThe XmlTextWriter.WriteState is notWriteState.Attribute.

Remarks

Note:

The XmlTextWriter.WriteStartAttribute(string, string, string) and XmlTextWriter.WriteEndElement methods also will close an open attribute if one exists when they are called.

This method overrides XmlWriter.WriteEndAttribute.

Requirements

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