XmlSchemaImporter::ImportDerivedTypeMapping Method (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.

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

public:
XmlTypeMapping^ ImportDerivedTypeMapping(
	XmlQualifiedName^ name,
	Type^ baseType,
	bool baseTypeCanBeIndirect
)

Parameters

name
Type: System.Xml::XmlQualifiedName^

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

baseType
Type: System::Type^

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

baseTypeCanBeIndirect
Type: System::Boolean

true to indicate that the type corresponding to an XSD element can indirectly inherit from the base type; otherwise, false.

Return Value

Type: System.Xml.Serialization::XmlTypeMapping^

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

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.

.NET Framework
Available since 1.1
Return to top
Show: