Preference.GetPersistedStringSet(ICollection<String>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果偏好是持久的,嘗試取得持久的字串集合。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。