System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypeMapping Method

Generates internal type mapping information for an element defined in an XML schema document.

Syntax

public XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type baseType)

Parameters

name
An System.Xml.XmlQualifiedName that specifies the name of an element defined in an XML schema document.
baseType
A base type for the .NET Framework type that is generated to correspond to an XSD element's type.

Returns

An System.Xml.Serialization.XmlTypeMapping representing the.NET Framework type mapping information for an XML schema element.

Remarks

This overload of the XmlSchemaImporter.ImportDerivedTypeMapping(System.Xml.XmlQualifiedName, Type) method is used by the Xsd.exe tool to generate classes from an XML Schema Definition (XSD) document. Instead of calling this method directly, use Xsd.exe.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0