Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataContractSerializerSettings Class

.NET Framework (current version)
 

Specifies data contract serializer settings.

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

System.Object
  System.Runtime.Serialization.DataContractSerializerSettings

public class DataContractSerializerSettings

NameDescription
System_CAPS_pubmethodDataContractSerializerSettings()

Initializes a new instance of the DataContractSerializerSettings class.

NameDescription
System_CAPS_pubpropertyDataContractResolver

Gets or sets the component used to dynamically map xsi:type declarations to known contract types.

System_CAPS_pubpropertyDataContractSurrogate

Gets or sets a serialization surrogate.

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 of the DataContractSerializerSettings.

System_CAPS_pubpropertyMaxItemsInObjectGraph

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

System_CAPS_pubpropertyPreserveObjectReferences

Gets or sets a value that specifies whether to use non-standard XML constructs to preserve object reference data.

System_CAPS_pubpropertyRootName

Gets or sets the root name of the selected object.

System_CAPS_pubpropertyRootNamespace

Gets or sets the root namespace for the specified object.

System_CAPS_pubpropertySerializeReadOnlyTypes

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

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 4.5
.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:
© 2016 Microsoft