Preference.GetPersistedStringSet(ICollection<String>) 方法

定义

如果此首选项是永久性的,则尝试获取一组持久字符串。

[Android.Runtime.Register("getPersistedStringSet", "(Ljava/util/Set;)Ljava/util/Set;", "GetGetPersistedStringSet_Ljava_util_Set_Handler", ApiSince=24)]
public virtual System.Collections.Generic.ICollection<string>? GetPersistedStringSet(System.Collections.Generic.ICollection<string>? defaultReturnValue);
[<Android.Runtime.Register("getPersistedStringSet", "(Ljava/util/Set;)Ljava/util/Set;", "GetGetPersistedStringSet_Ljava_util_Set_Handler", ApiSince=24)>]
abstract member GetPersistedStringSet : System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>
override this.GetPersistedStringSet : System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>

参数

defaultReturnValue
ICollection<String>

如果此首选项不持久或此首选项不存在,则返回的默认值。

返回

数据存储中的值或默认返回值。

属性

注解

如果此首选项是永久性的,则尝试获取一组持久字符串。

Java文档android.preference.Preference.getPersistedStringSet(java.util.Set<java.lang.String>)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于