NSPersistentStoreCoordinator.ReplacePersistentStore 方法

定义

将 处 destinationUrl 的永久性存储替换为 中的持久 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

参数

destinationUrl
NSUrl
destinationOptions
NSDictionary

内容待定。

此参数可以为 null

sourceUrl
NSUrl
sourceOptions
NSDictionary

内容待定。

此参数可以为 null

storeType
String
error
NSError

内容待定。

此参数可以为 null

返回

属性

适用于