<serviceDescriptionFormatExtensionTypes> 的 <remove> 元素

本主题专门介绍一项旧有技术。现在应通过使用以下链接来创建 XML Web 服务和 XML Web 服务客户端: Windows Communication Foundation.

从配置文件的范围内移除指定的服务说明格式扩展 (SDFE) 类。<remove> 的值必须与上一个 <add> 指令的值完全匹配。不支持通配符选择。

架构层次结构

<configuration>
  <system.web>
    <webServices> 元素
      <serviceDescriptionFormatExtensionTypes> 元素
        <serviceDescriptionFormatExtensionTypes> 的 <remove> 元素

语法

<remove type="service description format extension type"/>

属性和元素

以下几节描述了特性、子元素和父元素。

属性

特性 说明

Type

必需的特性。

要移除的 SDFE 类。

子元素

无。

父元素

元素 说明

configuration

公共语言运行时和 .NET Framework 应用程序所使用的每个配置文件中的根元素。

serviceDescriptionFormatExtensionTypes

指定用来扩展为 Web 服务生成的 WSDL 文档的服务说明格式扩展 (SDFE) 类。SDFE 提供了一种描述 SOAP 扩展的方法。

system.web

为 ASP.NET 配置节指定根元素。

webServices

控制使用 ASP.NET 部署的 Web 服务的设置以及运行在 .NET Framework 上的 Web 服务客户端的设置。

示例

下面的示例移除一个通过包含在继承的配置文件中的 <add> 元素添加的 SDFE 类。

<configuration>
   <system.web>
      <webServices>
         <serviceDescriptionFormatExtensionType>
            <remove type=NameOfClass"/>
         </serviceDescriptionFormatExtensionType >
      <webServices>
   </system.web>
</configuration>

另请参见

任务

演练:自定义服务说明和代理类的生成

参考

<webServices> 元素
<serviceDescriptionFormatExtensionTypes> 元素
ServiceDescriptionFormatExtension

其他资源

ASP.NET Settings Schema
使用 ASP.NET 创建的 XML Web Services 以及 XML Web Services 客户端