Aracılığıyla paylaş


AbstractPreferences.Clear Method

Definition

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

[Android.Runtime.Register("clear", "()V", "GetClearHandler")]
public override void Clear ();
[<Android.Runtime.Register("clear", "()V", "GetClearHandler")>]
override this.Clear : unit -> unit
Attributes

Exceptions

Remarks

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

This implementation obtains this preference node's lock, invokes #keys() to obtain an array of keys, and iterates over the array invoking #remove(String) on each key.

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

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