XmlSerializationWriter.WriteSerializable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instructs XmlNode to write an object that uses custom XML formatting as an XML element.
Overloads
WriteSerializable(IXmlSerializable, String, String, Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes an object that uses custom XML formatting as an XML element. |
WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. Instructs XmlNode to write an object that uses custom XML formatting as an XML element. |
WriteSerializable(IXmlSerializable, String, String, Boolean)
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
Writes an object that uses custom XML formatting as an XML element.
This API supports the product infrastructure and is not intended to be used directly from your code.
protected:
void WriteSerializable(System::Xml::Serialization::IXmlSerializable ^ serializable, System::String ^ name, System::String ^ ns, bool isNullable);
protected void WriteSerializable (System.Xml.Serialization.IXmlSerializable? serializable, string name, string ns, bool isNullable);
protected void WriteSerializable (System.Xml.Serialization.IXmlSerializable serializable, string name, string ns, bool isNullable);
member this.WriteSerializable : System.Xml.Serialization.IXmlSerializable * string * string * bool -> unit
Protected Sub WriteSerializable (serializable As IXmlSerializable, name As String, ns As String, isNullable As Boolean)
Parameters
- serializable
- IXmlSerializable
An object that implements the IXmlSerializable interface that uses custom XML formatting.
- name
- String
The local name of the XML element to write.
- ns
- String
The namespace of the XML element to write.
- isNullable
- Boolean
true
to write an xsi:nil='true'
attribute if the IXmlSerializable class object is null
; otherwise, false
.
Remarks
The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.
Applies to
WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean)
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
Instructs XmlNode to write an object that uses custom XML formatting as an XML element.
This API supports the product infrastructure and is not intended to be used directly from your code.
protected:
void WriteSerializable(System::Xml::Serialization::IXmlSerializable ^ serializable, System::String ^ name, System::String ^ ns, bool isNullable, bool wrapped);
protected void WriteSerializable (System.Xml.Serialization.IXmlSerializable? serializable, string name, string? ns, bool isNullable, bool wrapped);
protected void WriteSerializable (System.Xml.Serialization.IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped);
member this.WriteSerializable : System.Xml.Serialization.IXmlSerializable * string * string * bool * bool -> unit
Protected Sub WriteSerializable (serializable As IXmlSerializable, name As String, ns As String, isNullable As Boolean, wrapped As Boolean)
Parameters
- serializable
- IXmlSerializable
An object that implements the IXmlSerializable interface that uses custom XML formatting.
- name
- String
The local name of the XML element to write.
- ns
- String
The namespace of the XML element to write.
- isNullable
- Boolean
true
to write an xsi:nil='true'
attribute if the IXmlSerializable object is null
; otherwise, false
.
- wrapped
- Boolean
true
to ignore writing the opening element tag; otherwise, false
to write the opening element tag.
Applies to
.NET