Compartilhar via


NSItemProvider.LoadObjectAsync Método

Definição

Sobrecargas

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>

Parâmetros

aClass
Class

Retornos

Uma tarefa que representa a operação assíncrona LoadObject. O valor do parâmetro TResult é do tipo System.Action<Foundation.INSItemProviderReading,Foundation.NSError>.

Atributos

Comentários

O método LoadObjectAsync é adequado para ser usado com assíncrono C# retornando o controle ao chamador com uma Tarefa que representa a operação.

A ser adicionado.

Aplica-se 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>

Parâmetros

aClass
Class
result
NSProgress

Retornos

Atributos

Aplica-se 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)

Parâmetros de tipo

T

Retornos

Task<T>
Atributos

Aplica-se 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)

Parâmetros de tipo

T

Parâmetros

result
NSProgress

Retornos

Task<T>
Atributos

Aplica-se a