System.Xml.Serialization.XmlSerializationWriter.WriteStartElement Method

Writes an opening element tag, including any attributes.

Syntax

protected void WriteStartElement (string name, string ns, object o, bool writePrefixed, XmlSerializerNamespaces xmlns)

Parameters

name
The local name of the XML element to write.
ns
The namespace of the XML element to write.
o
The object being serialized as an XML element.
writePrefixed
true to write the element name with a prefix if none is available for the specified namespace; otherwise, false.
xmlns
An instance of the System.Xml.Serialization.XmlSerializerNamespaces class that contains prefix and namespace pairs to be used in the generated XML.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0