XsdDataContractImporter.GetCodeTypeReference Method (XmlQualifiedName)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a CodeTypeReference to the CLR type generated for the schema type with the specified XmlQualifiedName.

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

public CodeTypeReference GetCodeTypeReference(
	XmlQualifiedName typeName


Type: System.Xml.XmlQualifiedName

The XmlQualifiedName that specifies the schema type to look up.

Return Value

Type: System.CodeDom.CodeTypeReference

A CodeTypeReference reference to the CLR type generated for the schema type with the typeName specified.

Use this method to look up the reference to a generated CLR type after calling the Import method. The CodeTypeReference contains the name of the generated type and can be used to look up the corresponding CodeTypeDeclaration in the CodeCompileUnit.

.NET Framework
Available since 3.0
Return to top