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.

適用於

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.

適用於