Import Method (XmlSchemaSet, XmlSchemaElement)

XsdDataContractImporter.Import Method (XmlSchemaSet, XmlSchemaElement)


Transforms the specified schema element in the set of specified XML schemas into a CodeCompileUnit and returns an XmlQualifiedName that represents the data contract name for the specified element.

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

public XmlQualifiedName Import(
	XmlSchemaSet schemas,
	XmlSchemaElement element


Type: System.Xml.Schema.XmlSchemaSet

An XmlSchemaSet that contains the schemas to transform.

Type: System.Xml.Schema.XmlSchemaElement

An XmlSchemaElement that represents the specific schema element to transform.

Return Value

Type: System.Xml.XmlQualifiedName

An XmlQualifiedName that represents the specified element.

Exception Condition

The schemas or element parameter is null.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft