XmlSerializationWriter.WriteStartElement 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 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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기