<appSettings> の <remove> 要素

カスタム アプリケーション設定を削除します。

configuration
  <appSettings>
    <remove>

構文

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

属性

説明
key 必須の属性です。

削除するキーの名前を指定します。

親要素

説明
<appSettings> ファイル パス、XML Web サービス URL、またはアプリケーションのその他のカスタム構成情報など、カスタム アプリケーションの設定が含まれています。

子要素

なし

次の例では、ApplicationName のカスタム構成設定を削除する方法を示しています。

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

関連項目