Editare

Partajați prin


XmlSerializationWriter.WriteStartElement Method

Definition

Instructs XmlNode to write an opening element tag, including any attributes.

Overloads

WriteStartElement(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an opening element tag, including any attributes.

WriteStartElement(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an opening element tag, including any attributes.

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

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an opening element tag, including any attributes.

WriteStartElement(String)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an opening element tag, including any attributes.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

name
String

The local name of the XML element to write.

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

WriteStartElement(String, String)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an opening element tag, including any attributes.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

name
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

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

WriteStartElement(String, String, Boolean)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an opening element tag, including any attributes.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns, bool writePrefixed);
protected void WriteStartElement (string name, 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)

Parameters

name
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

writePrefixed
Boolean

true to write the element name with a prefix if none is available for the specified namespace; 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

WriteStartElement(String, String, Object)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an opening element tag, including any attributes.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteStartElement(System::String ^ name, System::String ^ ns, System::Object ^ o);
protected void WriteStartElement (string name, string? ns, 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)

Parameters

name
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized as an XML element.

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

WriteStartElement(String, String, Object, Boolean)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an opening element tag, including any attributes.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

name
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized as an XML element.

writePrefixed
Boolean

true to write the element name with a prefix if none is available for the specified namespace; 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

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

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an opening element tag, including any attributes.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

name
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized as an XML element.

writePrefixed
Boolean

true to write the element name with a prefix if none is available for the specified namespace; otherwise, false.

xmlns
XmlSerializerNamespaces

An instance of the XmlSerializerNamespaces class that contains prefix and namespace pairs to be used in the generated XML.

Applies to