XmlSerializationWriter.WriteXsiType(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes an xsi:type
attribute for an XML element that is being serialized into a document.
This API supports the product infrastructure and is not intended to be used directly from your code.
protected:
void WriteXsiType(System::String ^ name, System::String ^ ns);
protected void WriteXsiType (string name, string? ns);
protected void WriteXsiType (string name, string ns);
member this.WriteXsiType : string * string -> unit
Protected Sub WriteXsiType (name As String, ns As String)
Parameters
- name
- String
The local name of an XML Schema data type.
- ns
- String
The namespace of an XML Schema data type.
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.