System.Xml.Serialization.XmlSerializationWriter.WriteSerializable Method

Writes an object that uses custom XML formatting as an XML element.

Syntax

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

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 class object is null; otherwise, false.

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