NSPersistentStoreCoordinator.AddPersistentStoreAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
설명된 영구 저장소를 추가하고 완료되면 처리기를 실행합니다.
[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# 비동기에서 사용하는 데 적합합니다.
추가될 예정입니다.