<appSettings> 的 <remove> 元素
删除自定义应用程序设置。
configuration
<appSettings>
<remove>
语法
<appSettings>
<remove key="Key of custom setting" />
</appSettings>
属性
说明 | |
---|---|
key | 必需的特性。 指定要删除的键名。 |
父元素
描述 | |
---|---|
<appSettings> | 包含自定义应用程序设置,如文件路径、XML Web service URL 或应用程序的任何其他自定义配置信息。 |
子元素
无
示例
以下示例演示如何删除 ApplicationName
的自定义配置设置:
<appSettings>
<remove key="ApplicationName" />
</appSettings>