XmlSchemaImporter.ImportDerivedTypeMapping Method

Definition

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

Overloads

ImportDerivedTypeMapping(XmlQualifiedName, Type)

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

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

ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean)

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

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

ImportDerivedTypeMapping(XmlQualifiedName, Type)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

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

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportDerivedTypeMapping(System::Xml::XmlQualifiedName ^ name, Type ^ baseType);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type? baseType);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type baseType);
member this.ImportDerivedTypeMapping : System.Xml.XmlQualifiedName * Type -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportDerivedTypeMapping (name As XmlQualifiedName, baseType As Type) As XmlTypeMapping

Parameters

name
XmlQualifiedName

An XmlQualifiedName that specifies the name of an element defined in an XML schema document.

baseType
Type

A base type for the .NET Framework type that is generated to correspond to an XSD element's type.

Returns

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

Remarks

This overload of the ImportDerivedTypeMapping 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.

Applies to

ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

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

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportDerivedTypeMapping(System::Xml::XmlQualifiedName ^ name, Type ^ baseType, bool baseTypeCanBeIndirect);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type? baseType, bool baseTypeCanBeIndirect);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type baseType, bool baseTypeCanBeIndirect);
member this.ImportDerivedTypeMapping : System.Xml.XmlQualifiedName * Type * bool -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportDerivedTypeMapping (name As XmlQualifiedName, baseType As Type, baseTypeCanBeIndirect As Boolean) As XmlTypeMapping

Parameters

name
XmlQualifiedName

An XmlQualifiedName that specifies the name of an element defined in an XML schema document.

baseType
Type

A base type for the .NET Framework type that is generated to correspond to an XSD element's type.

baseTypeCanBeIndirect
Boolean

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 ImportDerivedTypeMapping 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.

Applies to