# IApplicationSettingsService.SetValue&lt;T&gt; method

Stores the value under the key, replacing the previous one.

**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 void SetValue<T>(string key, T value)
```

## Type Parameters

| name | description |
| --- | --- |
| T | The type of the value. |

## Parameters

| name | type | description |
| --- | --- | --- |
| key | `string` | The key to store the value under. |
| value | `T` | The value to store. |

## See Also

* interface [IApplicationSettingsService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IApplicationSettingsService/index.md)
* 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 -->
