Editare

Partajați prin


XmlSerializationWriter.WriteTypedPrimitive Method

Definition

Writes an XML element whose text body is a value of a simple XML Schema data type.

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

protected:
 void WriteTypedPrimitive(System::String ^ name, System::String ^ ns, System::Object ^ o, bool xsiType);
protected void WriteTypedPrimitive (string? name, string? ns, object o, bool xsiType);
protected void WriteTypedPrimitive (string name, string ns, object o, bool xsiType);
member this.WriteTypedPrimitive : string * string * obj * bool -> unit
Protected Sub WriteTypedPrimitive (name As String, ns As String, o As Object, xsiType As Boolean)

Parameters

name
String

The local name of the element to write.

ns
String

The namespace of the element to write.

o
Object

The object to be serialized in the element body.

xsiType
Boolean

true if the XML element explicitly specifies the text value's type using the xsi:type attribute; 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.

The xsi:type attribute explicitly indicates the XML Schema data type. The prefix xsi refers to the XML Schema instance namespace.

Applies to