Bearbeiten

Freigeben über


NSPersistentContainer.LoadPersistentStores Method

Definition

Loads the persistent stores in the container and runs a completion handler when finished.

[Foundation.Export("loadPersistentStoresWithCompletionHandler:")]
public virtual void LoadPersistentStores (Action<CoreData.NSPersistentStoreDescription,Foundation.NSError> block);
abstract member LoadPersistentStores : Action<CoreData.NSPersistentStoreDescription, Foundation.NSError> -> unit
override this.LoadPersistentStores : Action<CoreData.NSPersistentStoreDescription, Foundation.NSError> -> unit

Parameters

block
Action<NSPersistentStoreDescription,NSError>

A completion handler that takes a NSPersistentStoreDescription and an error in which to store any errors that were encountered while attempting to load the stores.

Attributes

Applies to