Skip to content

IApplicationSettingsService.TryGetValue<T> method

Reads the value stored under the key.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts

Declaration

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