Compartir a través de


<dataContractSerializer>

Contains configuration data for the DataContractSerializer.

<system.serviceModel>

  <behaviors>

    <serviceBehaviors>

      <behavior> of <serviceBehaviors>

        <dataContractSerializer>

          <system.runtime.serialization>

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

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 settable only on the <dataContractSerializer> under the <behavior> element.

Child Elements

None.

Parent Elements

Element Description

<behavior> of <serviceBehaviors>

A collection of settings for the behavior of a service.

<system.runtime.serialization>

Represents the root element for the System.Runtime.Serialization namespace section and contains elements for setting options of the DataContractSerializer.

Remarks

For more information about known types, see DataContractSerializer.

See Also

Reference

DataContractSerializer

Other Resources

Data Contract Known Types

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.