Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type, attribute, and namespace.
- type
The .NET Framework type for which to generate a type mapping.
- root
An System.Xml.Serialization.XmlRootAttribute attribute that is applied to the type.
- defaultNamespace
The default XML namespace to use.
![]()
An System.Xml.Serialization.XmlTypeMapping that contains the internal .NET Framework mapping of a type to an XML Schema element.
It is not necessary to call the XmlReflectionImporter.ImportTypeMapping(Type, XmlRootAttribute, string) method directly.