System.Xml.Serialization.XmlSerializationWriter.WriteSerializable Method

Instructs System.Xml.XmlNode to write an object that uses custom XML formatting as an XML element.

Syntax

protected void WriteSerializable (IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped)

Parameters

serializable
An object that implements the System.Xml.Serialization.IXmlSerializable interface that uses custom XML formatting.
name
The local name of the XML element to write.
ns
The namespace of the XML element to write.
isNullable
true to write an xsi:nil='true' attribute if the System.Xml.Serialization.IXmlSerializable object is null; otherwise, false.
wrapped
true to ignore writing the opening element tag; otherwise, false to write the opening element tag.

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