NSPersistentStoreCoordinator.AddPersistentStoreAsync 메서드

정의

설명된 영구 저장소를 추가하고 완료되면 처리기를 실행합니다.

[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>

매개 변수

storeDescription
NSPersistentStoreDescription

반환

비동기 AddPersistentStore 작업을 나타내는 작업입니다. TResult 매개 변수의 값은 System.Action<CoreData.NSPersistentStoreDescription,Foundation.NSError> 형식입니다.

특성

설명

AddPersistentStoreAsync 메서드는 작업을 나타내는 Task를 사용하여 호출자에게 컨트롤을 반환하여 C# 비동기에서 사용하는 데 적합합니다.

추가될 예정입니다.

적용 대상