다음을 통해 공유


NSItemProvider.LoadObjectAsync 메서드

정의

오버로드

LoadObjectAsync(Class)
LoadObjectAsync(Class, NSProgress)
LoadObjectAsync<T>()
LoadObjectAsync<T>(NSProgress)

LoadObjectAsync(Class)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.INSItemProviderReading> LoadObjectAsync (ObjCRuntime.Class aClass);
abstract member LoadObjectAsync : ObjCRuntime.Class -> System.Threading.Tasks.Task<Foundation.INSItemProviderReading>
override this.LoadObjectAsync : ObjCRuntime.Class -> System.Threading.Tasks.Task<Foundation.INSItemProviderReading>

매개 변수

aClass
Class

반환

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

특성

설명

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

추가될 예정입니다.

적용 대상

LoadObjectAsync(Class, NSProgress)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.INSItemProviderReading> LoadObjectAsync (ObjCRuntime.Class aClass, out Foundation.NSProgress result);
abstract member LoadObjectAsync : ObjCRuntime.Class *  -> System.Threading.Tasks.Task<Foundation.INSItemProviderReading>
override this.LoadObjectAsync : ObjCRuntime.Class *  -> System.Threading.Tasks.Task<Foundation.INSItemProviderReading>

매개 변수

aClass
Class
result
NSProgress

반환

특성

적용 대상

LoadObjectAsync<T>()

[ObjCRuntime.TV(11, 0)]
[ObjCRuntime.Watch(4, 0)]
public System.Threading.Tasks.Task<T> LoadObjectAsync<T> () where T : Foundation.NSObject, Foundation.INSItemProviderReading;
member this.LoadObjectAsync : unit -> System.Threading.Tasks.Task<'T (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)> (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)

형식 매개 변수

T

반환

Task<T>
특성

적용 대상

LoadObjectAsync<T>(NSProgress)

[ObjCRuntime.TV(11, 0)]
[ObjCRuntime.Watch(4, 0)]
public System.Threading.Tasks.Task<T> LoadObjectAsync<T> (out Foundation.NSProgress result) where T : Foundation.NSObject, Foundation.INSItemProviderReading;
member this.LoadObjectAsync :  -> System.Threading.Tasks.Task<'T (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)> (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)

형식 매개 변수

T

매개 변수

result
NSProgress

반환

Task<T>
특성

적용 대상