Bagikan melalui


NSPersistentStoreCoordinator.ReplacePersistentStore Metode

Definisi

Mengganti penyimpanan persisten di destinationUrl dengan yang ada di 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

Parameter

destinationUrl
NSUrl
destinationOptions
NSDictionary

Untuk ditambahkan.

Parameter ini dapat berupa null.

sourceUrl
NSUrl
sourceOptions
NSDictionary

Untuk ditambahkan.

Parameter ini dapat berupa null.

storeType
String
error
NSError

Untuk ditambahkan.

Parameter ini dapat berupa null.

Mengembalikan

Atribut

Berlaku untuk