Edytuj

Udostępnij za pośrednictwem


NSItemProvider.LoadObjectAsync Method

Definition

Overloads

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>

Parameters

aClass
Class

Returns

A task that represents the asynchronous LoadObject operation. The value of the TResult parameter is of type System.Action<Foundation.INSItemProviderReading,Foundation.NSError>.

Attributes

Remarks

The LoadObjectAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to

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>

Parameters

aClass
Class
result
NSProgress

Returns

Attributes

Applies to

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)

Type Parameters

T

Returns

Task<T>
Attributes

Applies to

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)

Type Parameters

T

Parameters

result
NSProgress

Returns

Task<T>
Attributes

Applies to