Share via


NSPersistentContainer.LoadPersistentStoresAsync Method

Definition

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription> LoadPersistentStoresAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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>.

Attributes

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