NSPersistentStoreCoordinator.AddPersistentStore Method

Definition

Adds the described persistent store and runs a handler when it is complete.

[Foundation.Export("addPersistentStoreWithDescription:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddPersistentStore (CoreData.NSPersistentStoreDescription storeDescription, Action<CoreData.NSPersistentStoreDescription,Foundation.NSError> block);
abstract member AddPersistentStore : CoreData.NSPersistentStoreDescription * Action<CoreData.NSPersistentStoreDescription, Foundation.NSError> -> unit
override this.AddPersistentStore : CoreData.NSPersistentStoreDescription * Action<CoreData.NSPersistentStoreDescription, Foundation.NSError> -> unit

Parameters

storeDescription
NSPersistentStoreDescription
Attributes

Applies to