Partilhar via


<system.runtime.serialization>

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

Schema Hierarchy

system.runtime.serialization

Syntax

<configuration>
  <system.runtime.serialization>
    <dataContractSerializer ignoreExtensionDataObject="Boolean"
      maxItemsInObjectGraph="Integer">
      <declaredTypes>
        <add type="String ">
          <knownType type="String">
             <parameter index="Integer"/>
          </knownType>
        </add>
      </declaredTypes>
    <dataContractSerializer>
  </system.runtime.serialization>
</configuration>

Attributes and Elements

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

Attributes

None.

Child Elements

Element Description

<dataContractSerializer> of <system.runtime.serialization>

Enables addition of known types to be used when deserialization.

Parent Elements

Element Description

<configuration>

The top level element for configuration.

See Also

Reference

System.Runtime.Serialization

Other Resources

Using Data Contracts
Data Contract Known Types