跳转至

IApplicationSettingsService.TryGetValue<T> 方法

读取以该键存储的值。

命名空间: Eremex.AvaloniaUI.Controls.ApplicationServices
程序集: Eremex.Common.Contracts.dll
NuGet 包: Eremex.Common.Contracts

声明

public bool TryGetValue<T>(string key, out T? value)

类型参数

名称 说明
T 值的类型。

参数

名称 类型 说明
key string 存储该值所使用的键。
value T? 存储的值;如果没有,则为 T 的默认值。

返回值

类型 说明
bool 当该键下存储了 T 类型的值时为 true。

另请参阅



* 本页面使用机器翻译技术翻译。