KnownTypes Property

DataContractJsonSerializerSettings.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 the DataContractJsonSerializerSettings.

Namespace:  System.Runtime.Serialization.Json
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.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 the DataContractJsonSerializerSettings.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft