Export (0) Print
Expand All

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
)

Parameters

schemas
Type: System.Xml.Schema.XmlSchemaSet

An XmlSchemaSet that contains the schemas to transform.

element
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.

ExceptionCondition
ArgumentNullException

The schemas or element parameter is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft