Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 3.03 KB

datacontractserializer-element.md

File metadata and controls

68 lines (49 loc) · 3.03 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: <dataContractSerializer>
<dataContractSerializer>
03/30/2017
dataContractSerializer element
<dataContractSerializer> element
DataContractSerializer
KnownTypes
f41fb4d5-24e7-4059-8010-286a30bfea93

<dataContractSerializer>

Contains configuration data for the xref:System.Runtime.Serialization.DataContractSerializer. This element occurs in two different hierarchies. One is listed the following Schema Hierarchy section and the other is listed in the Remarks section.

<configuration>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <dataContractSerializer>

Syntax

<dataContractSerializer ignoreExtensionDataObject="Boolean"
                        maxItemsInObjectGraph="Integer" />

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Element Description
ignoreExtensionDataObject A Boolean value that specifies whether to ignore data supplied by the endpoint when it is being serialized or deserialized. This attribute is settable only on the <dataContractSerializer> under the <behavior> element.
maxItemsInObjectGraph An integer that specifies the maximum number of items to serialize or deserialize. This attribute is 65536.

Child Elements

None.

Parent Elements

Element Description
<behavior> A collection of settings for the behavior of a service.
<system.runtime.serialization> Represents the root element for the xref:System.Runtime.Serialization namespace section and contains elements for setting options of the xref:System.Runtime.Serialization.DataContractSerializer.

Remarks

As stated in the Introduction of this topic, this is the second hierarchy in which the <X509Extension> element occurs.

<system.runtime.serialization>

<dataContractSerializer>

For more information about known types, see xref:System.Runtime.Serialization.DataContractSerializer.

See also