<schemaImporterExtensions > 項目<schemaImporterExtensions> Element

包含 XmlSchemaImporter 用來對應 XSD 型別至 .NET Framework 型別的型別。Contains types that are used by the XmlSchemaImporter for mapping of XSD types to .NET Framework types. 如需組態檔的詳細資訊,請參閱組態檔結構描述For more information about configuration files, see Configuration File Schema.

語法Syntax

<schemaImporterExtensions>  
    <!-- Add types -->  
</schemaImporterExtensions>  

子元素Child Elements

項目Element 描述Description
<新增 > 項目<schemaImporterExtensions ><add> Element for <schemaImporterExtensions> 新增 XmlSchemaImporter 所使用的類型來建立對應。Adds types that are used by the XmlSchemaImporter to create mappings.

父項目Parent Elements

項目Element 描述Description
<system.xml.serialization> 項目<system.xml.serialization> Element 用來控制 XML 序列化的最上層項目。The top-level element for controlling XML serialization.

範例Example

下列程式碼範例描述如何加入 XmlSchemaImporter 在對應 XSD 型別至 .NET Framework 型別時使用的型別。The following code example illustrates how to add types that are used by the XmlSchemaImporter when mapping XSD types to .NET Framework types.

<system.xml.serialization>  
    <schemaImporterExtensions>  
        <add name = "MobileCapabilities" type =   
        "System.Web.Mobile.MobileCapabilities,   
        System.Web.Mobile, Version - 2.0.0.0, Culture = neutral,   
        PublicKeyToken = b03f5f6f11d40a3a" />  
    </schemaImporterExtensions>  
</system.xml.serialization>  

另請參閱See also