| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<system.xml.serialization> Element |
03/30/2017 |
.net |
article |
|
|
3ce45919-388a-418c-8968-6df0372c73ec |
5 |
Erikre |
erikre |
erikre |
<system.xml.serialization> Element
The top-level element for controlling XML serialization. For more information about configuration files, see Configuration File Schema.
<configuration>
<system.xml.serialization>
Syntax
<system.xml.serialization>
</system.xml.serialization> Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
| Element | Description |
|---|---|
| <dateTimeSerialization> Element | Determines the serialization mode of xref:System.DateTime objects. |
| <schemaImporterExtensions> Element | Contains types that are used by the xref:System.Xml.Serialization.XmlSchemaImporter for mapping of XSD types to .NET Framework types. |
Parent Elements
| Element | Description |
|---|---|
| <configuration> Element | The root element in every configuration file that is used by the common language runtime and .NET Framework applications. |
Example
The following code example illustrates how to specify the serialization mode of a xref:System.DateTime object, and the addition of types used by the xref:System.Xml.Serialization.XmlSchemaImporter when mapping XSD types to .NET Framework types.
<system.xml.serialization>
<xmlSerializer checkDeserializeAdvances="false" />
<dateTimeSerialization mode = "Local" />
<schemaImporterExtensions>
<add
name = "MobileCapabilities"
type = "System.Web.Mobile.MobileCapabilities,
System.Web.Mobile, Version - 2.0.0.0, Culture = neuutral,
PublicKeyToken = b03f5f6f11d40a3a" />
</schemaImporterExtensions>
</system.sxml.serialization> See Also
xref:System.Xml.Serialization.XmlSchemaImporter
xref:System.Xml.Serialization.Configuration.DateTimeSerializationSection.DateTimeSerializationMode
Configuration File Schema
<dateTimeSerialization> Element
<schemaImporterExtensions> Element
<add> Element for <xmlSchemaImporterExtensions>