<appSettings> の <remove> 要素
カスタム アプリケーション設定を削除します。
configuration
<appSettings>
<remove>
構文
<appSettings>
<remove key="Key of custom setting" />
</appSettings>
属性
説明 | |
---|---|
key | 必須の属性です。 削除するキーの名前を指定します。 |
親要素
説明 | |
---|---|
<appSettings> | ファイル パス、XML Web サービス URL、またはアプリケーションのその他のカスタム構成情報など、カスタム アプリケーションの設定が含まれています。 |
子要素
なし
例
次の例では、ApplicationName
のカスタム構成設定を削除する方法を示しています。
<appSettings>
<remove key="ApplicationName" />
</appSettings>
関連項目
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET