Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type and attribute.
- 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.
![]()
An System.Xml.Serialization.XmlTypeMapping that represents a mapping of a .NET Framework type to an XML Schema element.
It is not necessary to call the XmlReflectionImporter.ImportTypeMapping(Type, XmlRootAttribute) method directly.