Preference.GetPersistedStringSet(ICollection<String>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to get a persisted set of Strings if this Preference is persistent.
[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>
Parameters
- defaultReturnValue
- ICollection<String>
The default value to return if either this Preference is not persistent or this Preference is not present.
Returns
The value from the data store or the default return value.
- Attributes
Remarks
Attempts to get a persisted set of Strings if this Preference is persistent.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.