# IApplicationSettingsService interface

Stores application settings as values addressed by a key, for example the "do not show again" choices of confirmation dialogs or the last used folder.

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Common.Contracts.dll`  
**NuGet Package:** [Eremex.Common.Contracts](https://www.nuget.org/packages/Eremex.Common.Contracts)

## Declaration

```csharp
public interface IApplicationSettingsService
```

## Methods

| name | description |
| --- | --- |
| [Remove](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IApplicationSettingsService/Remove/index.md)(…) | Removes the value stored under the key. |
| [SetValue&lt;T&gt;](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IApplicationSettingsService/SetValue/index.md)(…) | Stores the value under the key, replacing the previous one. |
| [TryGetValue&lt;T&gt;](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IApplicationSettingsService/TryGetValue/index.md)(…) | Reads the value stored under the key. |

## Remarks

The default implementation keeps the values in memory only. An application that wants them to survive a restart registers its own implementation backed by its settings storage. Keys are case-sensitive; use a prefix that identifies the feature, such as `"ConfirmDialog.Suppress.MyKey"`.

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
