IPreferenceDataStore.GetStringSet(String, 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.
Retrieve a set of String values from the data store.
[Android.Runtime.Register("getStringSet", "(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;", "GetGetStringSet_Ljava_lang_String_Ljava_util_Set_Handler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual System.Collections.Generic.ICollection<string>? GetStringSet (string? key, System.Collections.Generic.ICollection<string>? defValues);
[<Android.Runtime.Register("getStringSet", "(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;", "GetGetStringSet_Ljava_lang_String_Ljava_util_Set_Handler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member GetStringSet : string * System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>
override this.GetStringSet : string * System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>
Parameters
- key
- String
The name of the preference to retrieve.
- defValues
- ICollection<String>
Values to return if this preference does not exist.
Returns
- Attributes
Remarks
Retrieve a set of String values from the data store.
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.