NSPersistentStoreCoordinator.ReplacePersistentStore Method

Definition

Replaces the persistent store at destinationUrl with the one at sourceUrl.

[Foundation.Export("replacePersistentStoreAtURL:destinationOptions:withPersistentStoreFromURL:sourceOptions:storeType:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ReplacePersistentStore (Foundation.NSUrl destinationUrl, Foundation.NSDictionary destinationOptions, Foundation.NSUrl sourceUrl, Foundation.NSDictionary sourceOptions, string storeType, out Foundation.NSError error);
abstract member ReplacePersistentStore : Foundation.NSUrl * Foundation.NSDictionary * Foundation.NSUrl * Foundation.NSDictionary * string *  -> bool
override this.ReplacePersistentStore : Foundation.NSUrl * Foundation.NSDictionary * Foundation.NSUrl * Foundation.NSDictionary * string *  -> bool

Parameters

destinationUrl
NSUrl
destinationOptions
NSDictionary

To be added.

This parameter can be null.

sourceUrl
NSUrl
sourceOptions
NSDictionary

To be added.

This parameter can be null.

storeType
String
error
NSError

To be added.

This parameter can be null.

Returns

Attributes

Applies to