System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping Method

Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type and attribute.

Syntax

public XmlTypeMapping ImportTypeMapping (Type type, XmlRootAttribute root)

Parameters

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.

Returns

An System.Xml.Serialization.XmlTypeMapping that represents a mapping of a .NET Framework type to an XML Schema element.

Remarks

It is not necessary to call the XmlReflectionImporter.ImportTypeMapping(Type, XmlRootAttribute) method directly.

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