# IApplicationSettingsService.TryGetValue&lt;T&gt; method

Reads the value stored under the key.

**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 bool TryGetValue<T>(string key, out T? value)
```

## Type Parameters

| name | description |
| --- | --- |
| T | The type of the value. |

## Parameters

| name | type | description |
| --- | --- | --- |
| key | `string` | The key the value is stored under. |
| value | `T?` | The stored value, or the default of *T* when there is none. |

## Returns

| type | description |
| --- | --- |
| `bool` | `true` when a value of type *T* is stored under the key. |

## 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 -->
