dataContractSerializer
Contains configuration data for the DataContractSerializer.
<configuration>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior>
<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> | Specifies an endpoint behavior. |
Remarks
See the DataContractSerializer documentation for more information about known types.
Caution
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.