Compartir a través de


AbstractPreferences.RemoveNodeSpi Method

Definition

Removes this preference node, invalidating it and any preferences that it contains.

[Android.Runtime.Register("removeNodeSpi", "()V", "GetRemoveNodeSpiHandler")]
protected abstract void RemoveNodeSpi ();
[<Android.Runtime.Register("removeNodeSpi", "()V", "GetRemoveNodeSpiHandler")>]
abstract member RemoveNodeSpi : unit -> unit
Attributes

Exceptions

if the backing store is unavailable or causes an operation failure.

Remarks

Removes this preference node, invalidating it and any preferences that it contains. The named child will have no descendants at the time this invocation is made (i.e., the Preferences#removeNode() method invokes this method repeatedly in a bottom-up fashion, removing each of a node's descendants before removing the node itself).

This method is invoked with the lock held on this node and its parent (and all ancestors that are being removed as a result of a single invocation to Preferences#removeNode()).

The removal of a node needn't become persistent until the flush method is invoked on this node (or an ancestor).

If this node throws a BackingStoreException, the exception will propagate out beyond the enclosing #removeNode() invocation.

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

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