Export (0) Print
Expand All

XsdDataContractImporter.GetKnownTypeReferences Method

Returns a list of CodeTypeReference objects that represents the known types generated when generating code for the specified schema type.

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

public ICollection<CodeTypeReference> GetKnownTypeReferences(
	XmlQualifiedName typeName


Type: System.Xml.XmlQualifiedName

An XmlQualifiedName that represents the schema type to look up known types for.

When generating CLR types for schema types, known types are also generated for all derived types that are present in the schema. In many cases, these known types are added using attributes to the generated code. (For example, see the KnownTypeAttribute class. ) However, for the top-level type, there needs to be a way to return the set of known types generated. This method returns the CodeTypeReference for known types that were generated for a specific schema type.

For more information, see Data Contract Known Types.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft