<serviceDescriptionFormatExtensionTypes> 的 <add> 項目
加入指定的服務描述格式擴充功能 (SDFE) 類別,以定義如何擴充為 Web 服務產生的服務描述 (WSDL 文件)。
<configuration> 項目
system.web 項目 (ASP.NET 設定結構描述)
<webServices> 項目
<serviceDescriptionFormatExtensionTypes> 項目
<serviceDescriptionFormatExtensionTypes> 的 <add> 項目
<add type="service description format extension type"/>
屬性和項目
下列小節將說明屬性、子項目和父項目。
屬性
屬性 | 描述 |
---|---|
type |
必要屬性。 指定要加入的 SDFE 類別。 |
子項目
無
父項目
項目 | 描述 |
---|---|
configuration |
Common Language Runtime 和 .NET Framework 應用程式所使用之每個組態檔中的根項目。 |
serviceDescriptionFormatExtensionTypes |
指定用來延伸為 Web 服務產生之 WSDL 文件的服務描述格式延伸 (Service Description Format Extension,SDFE) 類別。SDFE 提供描述 SOAP 擴充功能的方法。 |
system.web |
指定 ASP.NET 組態區段的根項目。 |
webServices |
控制使用 ASP.NET 部署的 Web Service 設定,以及在 .NET Framework 上執行的 Web Service 用戶端的設定。 |
範例
下列範例會加入 SDFE 類別。
<configuration>
<system.web>
<webServices>
<serviceDescriptionFormatExtensionType>
<add type=NameOfClass"/>
</serviceDescriptionFormatExtensionType>
</webServices>
</system.web>
</configuration>
請參閱
工作
參考
<webServices> 項目
<serviceDescriptionFormatExtensionTypes> 項目
ServiceDescriptionFormatExtension Class
其他資源
ASP.NET 組態設定
使用 ASP.NET 和 XML Web Service 用戶端建立的 XML Web Service
ASP.NET Configuration