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

System.Xml.XmlWriter.WriteStartAttribute Method

Writes the start of an attribute with the specified prefix and name, and associates the prefix with the specified namespace URI. [Edit]

public abstract void WriteStartAttribute (string prefix, string localName, string ns)

Parameters

prefix
A string specifying the namespace prefix of the attribute. [Edit]
localName
A string specifying the local name of the attribute. [Edit]
ns
A string specifying the namespace URI associated with the attribute. [Edit]
localName
Documentation for this section has not yet been entered. [Edit]
ns
Documentation for this section has not yet been entered. [Edit]

Exceptions

TypeReason
InvalidOperationExceptionThe XmlWriter.WriteState is not one of the following:WriteState.Attribute or WriteState.Element. [Edit]

Remarks

Operation

If any of the input parameters are null or string.Empty, the start attribute is written with that parameter missing.

Note to Inheritors

When overriding this method, close any open attributes before writing the new attribute.

This method must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

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