XmlSerializationWriter.WriteNullTagLiteral Method

Definition

Instructs XmlNode to write an XML element with an xsi:nil='true' attribute.

Overloads

WriteNullTagLiteral(String)

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

Writes an XML element with an xsi:nil='true' attribute.

WriteNullTagLiteral(String, String)

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

Writes an XML element with an xsi:nil='true' attribute.

WriteNullTagLiteral(String)

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

Writes an XML element with an xsi:nil='true' attribute.

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

protected:
 void WriteNullTagLiteral(System::String ^ name);
protected void WriteNullTagLiteral (string? name);
protected void WriteNullTagLiteral (string name);
member this.WriteNullTagLiteral : string -> unit
Protected Sub WriteNullTagLiteral (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.

When set to true, the nil attribute from the XML Schema instance namespace (abbreviated xsi) indicates a null value.

The WriteNullTagLiteral method is called only when writing literal XML that can be defined in an XML Schema document.

Applies to

WriteNullTagLiteral(String, String)

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

Writes an XML element with an xsi:nil='true' attribute.

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

protected:
 void WriteNullTagLiteral(System::String ^ name, System::String ^ ns);
protected void WriteNullTagLiteral (string? name, string? ns);
protected void WriteNullTagLiteral (string name, string ns);
member this.WriteNullTagLiteral : string * string -> unit
Protected Sub WriteNullTagLiteral (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.

When set to true, the nil attribute from the XML Schema instance namespace (abbreviated xsi) indicates a null value.

The WriteNullTagLiteral method is called only when writing literal XML that can be defined in an XML Schema document.

Applies to