語言

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>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於