从配置文件的范围内移除指定的服务说明格式扩展 (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 客户端
.gif)
版权所有 (C) 2007 Microsoft Corporation。保留所有权利。