Freigeben über


NSPersistentStoreCoordinator.AddPersistentStore Methode

Definition

Fügt den beschriebenen persistenten Speicher hinzu und führt nach Abschluss des Vorgangs einen Handler aus.

[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

Parameter

storeDescription
NSPersistentStoreDescription
Attribute

Gilt für: