Mono Class Library: MonoTouch.Foundation.NSUserDefaults Overview | Members

MonoTouch.Foundation.NSUserDefaults.Synchronize Method

Writes any modifications to the persistent domains to disk and updates all unmodified persistent domains to what is on disk.

[MonoTouch.Foundation.Export("synchronize")]
public virtual bool Synchronize ()

Returns

true if the data was saved successfully to disk, otherwise false.

Remarks

Because this method is automatically invoked at periodic intervals, use this method only if you cannot wait for the automatic synchronization (for example, if your application is about to exit) or if you want to update the user defaults to what is on disk even though you have not made any changes.

Requirements

Namespace: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0