AbstractPreferences.FlushSpi 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.
This method is invoked with this node locked.
[Android.Runtime.Register("flushSpi", "()V", "GetFlushSpiHandler")]
protected abstract void FlushSpi ();
[<Android.Runtime.Register("flushSpi", "()V", "GetFlushSpiHandler")>]
abstract member FlushSpi : unit -> unit
- Attributes
Exceptions
if the backing store is unavailable or causes an operation failure.
Remarks
This method is invoked with this node locked. The contract of this method is to force any cached changes in the contents of this preference node to the backing store, guaranteeing their persistence. (It is perfectly possible that this node does not exist on the backing store, either because it has been deleted by another VM, or because it has not yet been created.) Note that this method should not flush the preferences in any subnodes of this node. If the backing store naturally flushes an entire subtree at once, the implementer is encouraged to override flush(), rather than merely overriding this method.
If this node throws a BackingStoreException
, the exception will propagate out beyond the enclosing #flush()
invocation.
Java documentation for java.util.prefs.AbstractPreferences.flushSpi()
.
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.