XmlSerializationWriter.WriteSerializable XmlSerializationWriter.WriteSerializable XmlSerializationWriter.WriteSerializable XmlSerializationWriter.WriteSerializable Method

Definition

Weist XmlNode an, ein Objekt zu schreiben, das benutzerdefinierte XML-Formatierung als XML-Element verwendet.Instructs XmlNode to write an object that uses custom XML formatting as an XML element.

Überlädt

WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean)

Schreibt ein Objekt, das benutzerdefinierte XML-Formatierung als XML-Element verwendet.Writes an object that uses custom XML formatting as an XML element.

WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean)

Weist XmlNode an, ein Objekt zu schreiben, das benutzerdefinierte XML-Formatierung als XML-Element verwendet.Instructs XmlNode to write an object that uses custom XML formatting as an XML element.

WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean)

Schreibt ein Objekt, das benutzerdefinierte XML-Formatierung als XML-Element verwendet.Writes an object that uses custom XML formatting as an XML element.

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);
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)

Parameter

serializable
IXmlSerializable IXmlSerializable IXmlSerializable IXmlSerializable

Ein Objekt, das die IXmlSerializable-Schnittstelle implementiert, die benutzerdefinierte XML-Formatierung verwendet.An object that implements the IXmlSerializable interface that uses custom XML formatting.

name
String String String String

Der lokale Name des zu schreibenden XML-Elements.The local name of the XML element to write.

ns
String String String String

Der Namespace des zu schreibenden XML-Elements.The namespace of the XML element to write.

isNullable
Boolean Boolean Boolean Boolean

true, falls ein xsi:nil='true'-Attribut geschrieben werden soll, wenn das IXmlSerializable-Klassenobjekt null ist, andernfalls false.true to write an xsi:nil='true' attribute if the IXmlSerializable class object is null; otherwise, false.

Hinweise

Geschützte Member der XmlSerializationWriter für die Verwendung vorgesehen sind, die nur von abgeleiteten Klassen, die in der Serialisierungsinfrastruktur von .NET Framework intern verwendet werden.The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean)

Weist XmlNode an, ein Objekt zu schreiben, das benutzerdefinierte XML-Formatierung als XML-Element verwendet.Instructs XmlNode to write an object that uses custom XML formatting as an XML element.

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);
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)

Parameter

serializable
IXmlSerializable IXmlSerializable IXmlSerializable IXmlSerializable

Ein Objekt, das die IXmlSerializable-Schnittstelle implementiert, die benutzerdefinierte XML-Formatierung verwendet.An object that implements the IXmlSerializable interface that uses custom XML formatting.

name
String String String String

Der lokale Name des zu schreibenden XML-Elements.The local name of the XML element to write.

ns
String String String String

Der Namespace des zu schreibenden XML-Elements.The namespace of the XML element to write.

isNullable
Boolean Boolean Boolean Boolean

true, falls ein xsi:nil='true'-Attribut geschrieben werden soll, wenn das IXmlSerializable-Objekt null ist, andernfalls false.true to write an xsi:nil='true' attribute if the IXmlSerializable object is null; otherwise, false.

wrapped
Boolean Boolean Boolean Boolean

true, wenn das öffnende Elementtag beim Schreiben übergangen werden soll, false, wenn das öffnende Elementtag geschrieben werden soll.true to ignore writing the opening element tag; otherwise, false to write the opening element tag.

Gilt für: