XmlSerializationWriter.WriteStartElement XmlSerializationWriter.WriteStartElement XmlSerializationWriter.WriteStartElement XmlSerializationWriter.WriteStartElement Method

Definition

Weist XmlNode an, ein öffnendes Elementtag einschließlich aller Attribute zu schreiben.Instructs XmlNode to write an opening element tag, including any attributes.

Überlädt

WriteStartElement(String) WriteStartElement(String) WriteStartElement(String) WriteStartElement(String)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

WriteStartElement(String, String) WriteStartElement(String, String) WriteStartElement(String, String) WriteStartElement(String, String)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object) WriteStartElement(String, String, Object) WriteStartElement(String, String, Object) WriteStartElement(String, String, Object)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

WriteStartElement(String) WriteStartElement(String) WriteStartElement(String) WriteStartElement(String)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

protected:
 void WriteStartElement(System::String ^ name);
protected void WriteStartElement (string name);
member this.WriteStartElement : string -> unit
Protected Sub WriteStartElement (name As String)

Parameter

name
String String String String

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

Hinweise

Die geschützten Member von XmlSerializationWriter können nur von abgeleiteten Klassen verwendet werden, die intern innerhalb der .NET Framework XML-Serialisierungsinfrastruktur 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.

WriteStartElement(String, String) WriteStartElement(String, String) WriteStartElement(String, String) WriteStartElement(String, String)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns);
protected void WriteStartElement (string name, string ns);
member this.WriteStartElement : string * string -> unit
Protected Sub WriteStartElement (name As String, ns As String)

Parameter

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.

Hinweise

Die geschützten Member von XmlSerializationWriter können nur von abgeleiteten Klassen verwendet werden, die intern innerhalb der .NET Framework XML-Serialisierungsinfrastruktur 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.

WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns, bool writePrefixed);
protected void WriteStartElement (string name, string ns, bool writePrefixed);
member this.WriteStartElement : string * string * bool -> unit
Protected Sub WriteStartElement (name As String, ns As String, writePrefixed As Boolean)

Parameter

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.

writePrefixed
Boolean Boolean Boolean Boolean

true, wenn der Elementname mit einem Präfix geschrieben werden soll, falls ein solches für den angegebenen Namespace nicht verfügbar ist, andernfalls false.true to write the element name with a prefix if none is available for the specified namespace; otherwise, false.

Hinweise

Die geschützten Member von XmlSerializationWriter können nur von abgeleiteten Klassen verwendet werden, die intern innerhalb der .NET Framework XML-Serialisierungsinfrastruktur 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.

WriteStartElement(String, String, Object) WriteStartElement(String, String, Object) WriteStartElement(String, String, Object) WriteStartElement(String, String, Object)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns, System::Object ^ o);
protected void WriteStartElement (string name, string ns, object o);
member this.WriteStartElement : string * string * obj -> unit
Protected Sub WriteStartElement (name As String, ns As String, o As Object)

Parameter

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.

o
Object Object Object Object

Das Objekt, das als XML-Element serialisiert wird.The object being serialized as an XML element.

Hinweise

Die geschützten Member von XmlSerializationWriter können nur von abgeleiteten Klassen verwendet werden, die intern innerhalb der .NET Framework XML-Serialisierungsinfrastruktur 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.

WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns, System::Object ^ o, bool writePrefixed);
protected void WriteStartElement (string name, string ns, object o, bool writePrefixed);
member this.WriteStartElement : string * string * obj * bool -> unit
Protected Sub WriteStartElement (name As String, ns As String, o As Object, writePrefixed As Boolean)

Parameter

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.

o
Object Object Object Object

Das Objekt, das als XML-Element serialisiert wird.The object being serialized as an XML element.

writePrefixed
Boolean Boolean Boolean Boolean

true, wenn der Elementname mit einem Präfix geschrieben werden soll, falls ein solches für den angegebenen Namespace nicht verfügbar ist, andernfalls false.true to write the element name with a prefix if none is available for the specified namespace; otherwise, false.

Hinweise

Die geschützten Member von XmlSerializationWriter können nur von abgeleiteten Klassen verwendet werden, die intern innerhalb der .NET Framework XML-Serialisierungsinfrastruktur 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.

WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces)

Schreibt ein öffnendes Elementtag einschließlich aller Attribute.Writes an opening element tag, including any attributes.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns, System::Object ^ o, bool writePrefixed, System::Xml::Serialization::XmlSerializerNamespaces ^ xmlns);
protected void WriteStartElement (string name, string ns, object o, bool writePrefixed, System.Xml.Serialization.XmlSerializerNamespaces xmlns);
member this.WriteStartElement : string * string * obj * bool * System.Xml.Serialization.XmlSerializerNamespaces -> unit
Protected Sub WriteStartElement (name As String, ns As String, o As Object, writePrefixed As Boolean, xmlns As XmlSerializerNamespaces)

Parameter

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.

o
Object Object Object Object

Das Objekt, das als XML-Element serialisiert wird.The object being serialized as an XML element.

writePrefixed
Boolean Boolean Boolean Boolean

true, wenn der Elementname mit einem Präfix geschrieben werden soll, falls ein solches für den angegebenen Namespace nicht verfügbar ist, andernfalls false.true to write the element name with a prefix if none is available for the specified namespace; otherwise, false.

xmlns
XmlSerializerNamespaces XmlSerializerNamespaces XmlSerializerNamespaces XmlSerializerNamespaces

Eine Instanz der XmlSerializerNamespaces-Klasse, die Paare aus Präfix und Namespace enthält, die im generierten XML-Code verwendet werden sollen.An instance of the XmlSerializerNamespaces class that contains prefix and namespace pairs to be used in the generated XML.

Gilt für: