Specifies type name handling options for the JsonSerializer.

Namespace: Newtonsoft.Json
Assembly: Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 6.0.0.0 (6.0.1.17001)

Syntax

C#
[FlagsAttribute]
public enum TypeNameHandling

Members

Member nameValueDescription
None0 Do not include the .NET type name when serializing types.
Objects1 Include the .NET type name when serializing into a JSON object structure.
Arrays2 Include the .NET type name when serializing into a JSON array structure.
All3 Always include the .NET type name when serializing.
Auto4 Include the .NET type name when the type of the object being serialized is not the same as its declared type.

See Also