Partager via


NSPersistentStoreCoordinator.AddPersistentStore Méthode

Définition

Ajoute le magasin persistant décrit et exécute un gestionnaire lorsqu’il est terminé.

[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

Paramètres

storeDescription
NSPersistentStoreDescription
Attributs

S’applique à