次の方法で共有


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# async で使用するのに適しています。

追加する。

適用対象

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>
属性

適用対象