NSPersistentStoreCoordinator.ReplacePersistentStore 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.
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
- sourceUrl
- NSUrl
- storeType
- String
Returns
- Attributes