Preferences.Sync 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.
Ensures that future reads from this preference node and its
descendants reflect any changes that were committed to the persistent
store (from any VM) prior to the sync
invocation.
[Android.Runtime.Register("sync", "()V", "GetSyncHandler")]
public abstract void Sync ();
[<Android.Runtime.Register("sync", "()V", "GetSyncHandler")>]
abstract member Sync : unit -> unit
- Attributes
Exceptions
if the backing store is unavailable or causes an operation failure.
if this node has been removed.
Remarks
Ensures that future reads from this preference node and its descendants reflect any changes that were committed to the persistent store (from any VM) prior to the sync
invocation. As a side-effect, forces any changes in the contents of this preference node and its descendants to the persistent store, as if the flush
method had been invoked on this node.
Java documentation for java.util.prefs.Preferences.sync()
.
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.