Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
KnownTypes Property

DataContractJsonSerializer.KnownTypes Property

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

Namespace:  System.Runtime.Serialization.Json
Assemblies:   System.Runtime.Serialization (in System.Runtime.Serialization.dll)
  System.Runtime.Serialization.Json (in System.Runtime.Serialization.Json.dll)

member KnownTypes : ReadOnlyCollection<Type> with get

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection(Type)
A ReadOnlyCollection(T) that contains the expected types passed in as known types to the DataContractJsonSerializer constructor.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft