System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypeMapping Method

Generates internal type mapping information for an element defined in an XML schema document or as a part in a WSDL document.

Syntax

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

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.
baseTypeCanBeIndirect
true to indicate that the type corresponding to an XSD element can indirectly inherit from the base type; otherwise, false.

Returns

The .NET Framework type mapping information for an XML schema element.

Remarks

This overload of the XmlSchemaImporter.ImportDerivedTypeMapping(System.Xml.XmlQualifiedName, Type, bool) method is used by the Xsd.exe tool to generate classes from an XML Schema Definition (XSD) document. It also is used by the Wsdl.exe tool while generating client proxy classes or abstract server classes from a Web Services Description Language (WSDL) document. Instead of calling this method directly, use Wsdl.exe or 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