WriteEndAttribute Method

XmlWriter.WriteEndAttribute Method

When overridden in a derived class, closes the previous WriteStartAttribute call.

[Visual Basic]
Public MustOverride Sub WriteEndAttribute()
[C#]
public abstract void WriteEndAttribute();
[C++]
public: virtual void WriteEndAttribute() = 0;
[JScript]
public abstract function WriteEndAttribute();

Remarks

If you call WriteStartAttribute, you can close the attribute with this method.

You can also close the attribute by calling WriteStartAttribute again, calling WriteAttributeString, or calling WriteEndElement.

Example

See WriteEndAttribute (in the XmlTextWriter class) for an example using this method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace

Show:
© 2016 Microsoft