dataContractSerializer

Contains configuration data for the DataContractSerializer.

Schema Hierarchy

<system.serviceModel>
  <behaviors>
    <endpointBehaviors>
      <behavior> of <endpointBehaviors>
        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.

maxItemsInObjectGraph

An integer that specifies the maximum number of items to serialize or deserialize.

Child Elements

None.

Parent Elements

Element Description

<behavior> of <endpointBehaviors>

Specifies an endpoint behavior.

Remarks

See the DataContractSerializer documentation for more information about known types.

Warning

The <dataContractSerializer> behavior element (if present) should always appear before the <enableWebScript> behavior element in the configuration file. Otherwise, the resulting behavior is undefined.

See Also

Reference

DataContractSerializer
DataContractSerializerOperationBehavior
DataContractSerializerElement

Other Resources

Data Contract Known Types
Data Transfer and Serialization


© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05