Compartir a través de


NSPersistentStoreCoordinator.AddPersistentStore Método

Definición

Agrega el almacén persistente descrito y ejecuta un controlador cuando se completa.

[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

Parámetros

storeDescription
NSPersistentStoreDescription
Atributos

Se aplica a