共用方式為


<remove> 元素 <appSettings>

移除自訂應用程式設定。

<configuration>
  <appSettings>
    <remove>

語法

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

Attribute

Attribute Description
key 必要屬性。

指定要移除的金鑰名稱。

父元素

父元素 Description
<appSettings> 包含自訂應用程式設定,例如檔案路徑、XML Web 服務 URL 或其他應用程式的自訂設定資訊。

子專案

None

Example

以下範例說明如何移除 的自訂設定:ApplicationName

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

另請參閱