KnownTypes Property

DataContractSerializerSettings.KnownTypes Property

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

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

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

public IEnumerable<Type> KnownTypes { get; set; }

Property Value

Type: System.Collections.Generic.IEnumerable<Type>
A collection of types that may be present in the object graph serialized using this instance of the DataContractSerializerSettings.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft