Compartir a través de


NSPersistentStoreCoordinator.ReplacePersistentStore Método

Definición

Reemplaza el almacén persistente en destinationUrl por el de 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

Parámetros

destinationUrl
NSUrl
destinationOptions
NSDictionary

Se agregará.

Este parámetro puede ser null.

sourceUrl
NSUrl
sourceOptions
NSDictionary

Se agregará.

Este parámetro puede ser null.

storeType
String
error
NSError

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a