Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
Contains configuration data for the DataContractSerializer.
<configuration>
<system.runtime.serialization>
<dataContractSerializer>
Syntax
<configuration>
<system.runtime.serialization>
<dataContractSerializer ignoreExtensionDataObject="Boolean"
maxItemsInObjectGraph="Integer">
<declaredTypes>
<add type="String">
<knownType type="String">
<parameter index="Integer"
type="String" />
</knownType>
</add>
</declaredTypes>
</dataContractSerializer>
</system.runtime.serialization>
</configuration>
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
| Element | Description |
|---|---|
| <declaredTypes> | Contains the known types that the DataContractSerializer uses when deserializing. For more information about data contracts and known types, see Data Contract Known Types. |
Parent Elements
| Element | Description |
|---|---|
| <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 and Data Contract Known Types.
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.