DataContractJsonSerializerSettings Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies DataContractJsonSerializer settings.

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

System.Object
  System.Runtime.Serialization.Json.DataContractJsonSerializerSettings

public class DataContractJsonSerializerSettings

NameDescription
System_CAPS_pubmethodDataContractJsonSerializerSettings()

Initializes a new instance of the DataContractJsonSerializerSettings class.

NameDescription
System_CAPS_pubpropertyDataContractSurrogate

Gets or sets a surrogate type that is currently active for given IDataContractSurrogate instance.

System_CAPS_pubpropertyDateTimeFormat

Gets or sets a DateTimeFormat that defines the culturally appropriate format of displaying dates and times.

System_CAPS_pubpropertyEmitTypeInformation

Gets or sets the data contract JSON serializer settings to emit type information.

System_CAPS_pubpropertyIgnoreExtensionDataObject

Gets or sets a value that specifies whether to ignore data supplied by an extension of the class when the class is being serialized or deserialized.

System_CAPS_pubpropertyKnownTypes

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

System_CAPS_pubpropertyMaxItemsInObjectGraph

Gets or sets the maximum number of items in an object graph to serialize or deserialize.

System_CAPS_pubpropertyRootName

Gets or sets the root name of the selected object.

System_CAPS_pubpropertySerializeReadOnlyTypes

Gets or sets a value that specifies whether to serialize read only types.

System_CAPS_pubpropertyUseSimpleDictionaryFormat

Gets or sets a value that specifies whether to use a simple dictionary format.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: