XmlSerializationWriter.WriteElementString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
写入一个开始元素标记,包括任何属性。
重载
| 名称 | 说明 |
|---|---|
| WriteElementString(String, String) |
此 API 支持产品基础结构,不能在代码中直接使用。 在其正文中写入具有指定值的 XML 元素。 |
| WriteElementString(String, String, String) |
此 API 支持产品基础结构,不能在代码中直接使用。 在其正文中写入具有指定值的 XML 元素。 |
| WriteElementString(String, String, XmlQualifiedName) |
此 API 支持产品基础结构,不能在代码中直接使用。 在其正文中写入具有指定值的 XML 元素。 |
| WriteElementString(String, String, String, XmlQualifiedName) |
此 API 支持产品基础结构,不能在代码中直接使用。 在其正文中写入具有指定值的 XML 元素。 |
WriteElementString(String, String)
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
在其正文中写入具有指定值的 XML 元素。
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
void WriteElementString(System::String ^ localName, System::String ^ value);
protected void WriteElementString(string localName, string? value);
protected void WriteElementString(string localName, string value);
member this.WriteElementString : string * string -> unit
Protected Sub WriteElementString (localName As String, value As String)
参数
- localName
- String
要编写且没有命名空间限定的 XML 元素的本地名称。
- value
- String
XML 元素的文本值。
注解
XmlSerializationWriter的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。
适用于
WriteElementString(String, String, String)
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
在其正文中写入具有指定值的 XML 元素。
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
void WriteElementString(System::String ^ localName, System::String ^ ns, System::String ^ value);
protected void WriteElementString(string localName, string? ns, string? value);
protected void WriteElementString(string localName, string ns, string value);
member this.WriteElementString : string * string * string -> unit
Protected Sub WriteElementString (localName As String, ns As String, value As String)
参数
- localName
- String
XML 元素的本地名称。
- ns
- String
XML 元素的命名空间。
- value
- String
XML 元素的文本值。
注解
XmlSerializationWriter的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。
适用于
WriteElementString(String, String, XmlQualifiedName)
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
在其正文中写入具有指定值的 XML 元素。
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
void WriteElementString(System::String ^ localName, System::String ^ value, System::Xml::XmlQualifiedName ^ xsiType);
protected void WriteElementString(string localName, string? value, System.Xml.XmlQualifiedName? xsiType);
protected void WriteElementString(string localName, string value, System.Xml.XmlQualifiedName xsiType);
member this.WriteElementString : string * string * System.Xml.XmlQualifiedName -> unit
Protected Sub WriteElementString (localName As String, value As String, xsiType As XmlQualifiedName)
参数
- localName
- String
XML 元素的本地名称。
- value
- String
XML 元素的文本值。
- xsiType
- XmlQualifiedName
要写入 xsi:type 属性的 XML 架构数据类型的名称。
注解
XmlSerializationWriter的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。
适用于
WriteElementString(String, String, String, XmlQualifiedName)
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
- Source:
- XmlSerializationWriter.cs
在其正文中写入具有指定值的 XML 元素。
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
void WriteElementString(System::String ^ localName, System::String ^ ns, System::String ^ value, System::Xml::XmlQualifiedName ^ xsiType);
protected void WriteElementString(string localName, string? ns, string? value, System.Xml.XmlQualifiedName? xsiType);
protected void WriteElementString(string localName, string ns, string value, System.Xml.XmlQualifiedName xsiType);
member this.WriteElementString : string * string * string * System.Xml.XmlQualifiedName -> unit
Protected Sub WriteElementString (localName As String, ns As String, value As String, xsiType As XmlQualifiedName)
参数
- localName
- String
XML 元素的本地名称。
- ns
- String
XML 元素的命名空间。
- value
- String
XML 元素的文本值。
- xsiType
- XmlQualifiedName
要写入 xsi:type 属性的 XML 架构数据类型的名称。
注解
XmlSerializationWriter的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。