NSPersistentStoreCoordinator.AddPersistentStoreAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the described persistent store and runs a handler when it is complete.
[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 System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription> AddPersistentStoreAsync (CoreData.NSPersistentStoreDescription storeDescription);
abstract member AddPersistentStoreAsync : CoreData.NSPersistentStoreDescription -> System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription>
override this.AddPersistentStoreAsync : CoreData.NSPersistentStoreDescription -> System.Threading.Tasks.Task<CoreData.NSPersistentStoreDescription>
Parameters
- storeDescription
- NSPersistentStoreDescription
Returns
A task that represents the asynchronous AddPersistentStore operation. The value of the TResult parameter is of type System.Action<CoreData.NSPersistentStoreDescription,Foundation.NSError>.
- Attributes
Remarks
The AddPersistentStoreAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.