XmlSerializationWriter.WriteNullableStringLiteralRaw 方法

定义

写入一个作为 XML 元素主体的字节数组。Writes a byte array as the body of an XML element. 如果字符串的值是 null,则 XmlNode 插入一个 xsi:nil='true' 属性。XmlNode inserts an xsi:nil='true' attribute if the string's value is null.

重载

WriteNullableStringLiteralRaw(String, String, Byte[])

此 API 支持产品基础结构,不能在代码中直接使用。

写入一个作为 XML 元素主体的字节数组。Writes a byte array as the body of an XML element. 如果字符串的值是 xsi:nil='true',则 XmlWriter 插入一个 null 属性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringLiteralRaw(String, String, String)

此 API 支持产品基础结构,不能在代码中直接使用。

写入一个 XML 元素,该元素包含一个作为主体的字符串。Writes an XML element that contains a string as the body. 如果字符串的值是 xsi:nil='true',则 XmlWriter 插入一个 null 属性。XmlWriter inserts a xsi:nil='true' attribute if the string's value is null.

WriteNullableStringLiteralRaw(String, String, Byte[])

写入一个作为 XML 元素主体的字节数组。Writes a byte array as the body of an XML element. 如果字符串的值是 xsi:nil='true',则 XmlWriter 插入一个 null 属性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 void WriteNullableStringLiteralRaw(System::String ^ name, System::String ^ ns, cli::array <System::Byte> ^ value);
protected void WriteNullableStringLiteralRaw (string? name, string ns, byte[] value);
protected void WriteNullableStringLiteralRaw (string name, string ns, byte[] value);
member this.WriteNullableStringLiteralRaw : string * string * byte[] -> unit
Protected Sub WriteNullableStringLiteralRaw (name As String, ns As String, value As Byte())

参数

name
String

要写入的 XML 元素的本地名称。The local name of the XML element to write.

ns
String

要写入的 XML 元素的命名空间。The namespace of the XML element to write.

value
Byte[]

要写入 XML 元素体的字节数组。The byte array to write in the body of the XML element.

注解

的受保护成员 XmlSerializationWriter 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

当设置为时 truenil XML 架构实例命名空间中的属性 (缩写 xsi) 指示 null 值。When set to true, the nil attribute from the XML Schema instance namespace (abbreviated xsi) indicates a null value.

WriteNullableStringLiteralRaw只有在编写可在 XML 架构文档中定义的文本 XML 时,才会调用方法。The WriteNullableStringLiteralRaw method is called only when writing literal XML that can be defined in an XML Schema document.

适用于

产品 Introduced

WriteNullableStringLiteralRaw(String, String, String)

写入一个 XML 元素,该元素包含一个作为主体的字符串。Writes an XML element that contains a string as the body. 如果字符串的值是 xsi:nil='true',则 XmlWriter 插入一个 null 属性。XmlWriter inserts a xsi:nil='true' attribute if the string's value is null.

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

name
String

要写入的 XML 元素的本地名称。The local name of the XML element to write.

ns
String

要写入的 XML 元素的命名空间。The namespace of the XML element to write.

value
String

要写入 XML 元素体的字符串。The string to write in the body of the XML element.

注解

的受保护成员 XmlSerializationWriter 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

当设置为时 truenil XML 架构实例命名空间中的属性 (缩写 xsi) 指示 null 值。When set to true, the nil attribute from the XML Schema instance namespace (abbreviated xsi) indicates a null value.

WriteNullableStringLiteralRaw只有在编写可在 XML 架构文档中定义的文本 XML 时,才会调用方法。The WriteNullableStringLiteralRaw method is called only when writing literal XML that can be defined in an XML Schema document.

适用于

产品 Introduced