System.Xml.Serialization.XmlSerializationWriter.WriteAttribute Method

Writes an XML attribute where the namespace prefix is provided manually.

Syntax

protected void WriteAttribute (string prefix, string localName, string ns, string value)

Parameters

prefix
The namespace prefix to write.
localName
The local name of the XML attribute.
ns
The namespace represented by the prefix.
value
The value of the XML attribute as a string.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Requirements

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