Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataContractSerializer.KnownTypes Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a collection of types that may be present in the object graph serialized using this instance of the DataContractSerializer.

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

public ReadOnlyCollection<Type> KnownTypes { get; }

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<Type>
A ReadOnlyCollection<T> that contains the expected types passed in as known types to the DataContractSerializer constructor.

The KnownTypes property provides the set of known types that are used for serialization and deserialization.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show: