Share via


AbstractPreferences.Keys Method

Definition

Implements the keys method as per the specification in Preferences#keys().

[Android.Runtime.Register("keys", "()[Ljava/lang/String;", "GetKeysHandler")]
public override string[]? Keys ();
[<Android.Runtime.Register("keys", "()[Ljava/lang/String;", "GetKeysHandler")>]
override this.Keys : unit -> string[]

Returns

String[]

an array of the keys that have an associated value in this preference node.

Attributes

Exceptions

Remarks

Implements the keys method as per the specification in Preferences#keys().

This implementation obtains this preference node's lock, checks that the node has not been removed and invokes #keysSpi().

Java documentation for java.util.prefs.AbstractPreferences.keys().

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.

Applies to