Preferences.Clear 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.
Removes all of the preferences (key-value associations) in this preference node.
[Android.Runtime.Register("clear", "()V", "GetClearHandler")]
public abstract void Clear ();
[<Android.Runtime.Register("clear", "()V", "GetClearHandler")>]
abstract member Clear : unit -> unit
- Attributes
Exceptions
if backing store is unavailable or causes an operation failure.
if this node has been removed.
Remarks
Removes all of the preferences (key-value associations) in this preference node. This call has no effect on any descendants of this node.
If this implementation supports stored defaults, and this node in the preferences hierarchy contains any such defaults, the stored defaults will be "exposed" by this call, in the sense that they will be returned by succeeding calls to get
.
Java documentation for java.util.prefs.Preferences.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.