<remove> 元素 <appSettings>

删除自定义应用程序设置。

<配置>
   <appSettings>
     <删除>

Syntax

<appSettings>
  <remove key="Key of custom setting" />
</appSettings>

Attribute

Description
key 必需属性。

指定要删除的键的名称。

Parent 元素

Description
<appSettings> 包含自定义应用程序设置,例如文件路径、XML Web 服务 URL 或应用程序的任何其他自定义配置信息。

子元素

None

Example

以下示例演示如何删除以下项 ApplicationName的自定义配置设置:

<appSettings>
  <remove key="ApplicationName" />
</appSettings>

另请参阅