XmlSchemaImporter.ImportSchemaType 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.

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

public XmlTypeMapping ImportSchemaType(
	XmlQualifiedName typeName,
	Type baseType,
	bool baseTypeCanBeIndirect
)

Parameters

typeName
Type: System.Xml.XmlQualifiedName

A XmlQualifiedName that specifies an XML element.

baseType
Type: System.Type

A Type object that specifies a base type.

baseTypeCanBeIndirect
Type: System.Boolean

A Boolean value that specifies whether the generated type can indirectly inherit the baseType.

Return Value

Type: System.Xml.Serialization.XmlTypeMapping

A XmlTypeMapping object that describes a type mapping.

.NET Framework
Available since 2.0
Return to top
Show: