Επεξεργασία

Κοινή χρήση μέσω


<system.runtime.serialization>

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

<configuration>
  <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> Enables addition of known types to be used when deserialization.

Parent Elements

Element Description
<configuration> Element The top level element for configuration.

See also