<system.xml.serialization > 項目<system.xml.serialization> Element

用來控制 XML 序列化的最上層項目。The top-level element for controlling XML serialization. 如需組態檔的詳細資訊,請參閱組態檔結構描述For more information about configuration files, see Configuration File Schema.




屬性和項目Attributes and Elements

下列各節描述屬性、子項目和父項目。The following sections describe attributes, child elements, and parent elements.



子元素Child Elements

項目Element 描述Description
<dateTimeSerialization> 元素<dateTimeSerialization> Element 判斷 DateTime 物件的序列化模式。Determines the serialization mode of DateTime objects.
<schemaImporterExtensions>元素<schemaImporterExtensions> Element 包含 XmlSchemaImporter 用來對應 XSD 型別至 .NET Framework 型別的型別。Contains types that are used by the XmlSchemaImporter for mapping of XSD types to .NET Framework types.

父項目Parent Elements

項目Element 描述Description
<configuration> 項目<configuration> Element Common Language Runtime 與 .NET Framework 應用程式使用的所有組態檔中的根項目。The root element in every configuration file that is used by the common language runtime and .NET Framework applications.


下列程式碼範例描述如何指定 DateTime 物件的序列化模式,以及在對應 XSD 型別至 .NET Framework 型別時 XmlSchemaImporter 使用的新增型別。The following code example illustrates how to specify the serialization mode of a DateTime object, and the addition of types used by the XmlSchemaImporter when mapping XSD types to .NET Framework types.

    <xmlSerializer checkDeserializeAdvances="false" />
    <dateTimeSerialization mode = "Local" />
        name = "MobileCapabilities"
        type = "System.Web.Mobile.MobileCapabilities,
        System.Web.Mobile, Version=, Culture=neutral,
        PublicKeyToken=b03f5f6f11d40a3a" />

另請參閱See also