Bearbeiten

Freigeben über


NSPersistentContainer.LoadPersistentStoresAsync Method

Definition

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

public virtual System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription> LoadPersistentStoresAsync ();
abstract member LoadPersistentStoresAsync : unit -> System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription>
override this.LoadPersistentStoresAsync : unit -> System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription>

Returns

A task that represents the asynchronous LoadPersistentStores operation. The value of the TResult parameter is of type System.Action<CoreData.NSPersistentStoreDescription,Foundation.NSError>.

Remarks

The LoadPersistentStoresAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to