Condividi tramite


NSItemProvider.LoadObjectAsync Metodo

Definizione

Overload

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>

Parametri

aClass
Class

Restituisce

Attività che rappresenta l'operazione LoadObject asincrona. Il valore del parametro TResult è di tipo System.Action<Foundation.INSItemProviderReading,Foundation.NSError>.

Attributi

Commenti

Il metodo LoadObjectAsync è adatto per essere usato con C# asincrono restituendo il controllo al chiamante con un'attività che rappresenta l'operazione.

Da aggiungere.

Si applica a

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>

Parametri

aClass
Class
result
NSProgress

Restituisce

Attributi

Si applica a

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)

Parametri di tipo

T

Restituisce

Task<T>
Attributi

Si applica a

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)

Parametri di tipo

T

Parametri

result
NSProgress

Restituisce

Task<T>
Attributi

Si applica a