Поделиться через


NSItemProvider.LoadObject Метод

Определение

Перегрузки

LoadObject(Class, Action<INSItemProviderReading,NSError>)
LoadObject<T>(Action<T,NSError>)

LoadObject(Class, Action<INSItemProviderReading,NSError>)

[Foundation.Export("loadObjectOfClass:completionHandler:")]
[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 Foundation.NSProgress LoadObject (ObjCRuntime.Class aClass, Action<Foundation.INSItemProviderReading,Foundation.NSError> completionHandler);
abstract member LoadObject : ObjCRuntime.Class * Action<Foundation.INSItemProviderReading, Foundation.NSError> -> Foundation.NSProgress
override this.LoadObject : ObjCRuntime.Class * Action<Foundation.INSItemProviderReading, Foundation.NSError> -> Foundation.NSProgress

Параметры

aClass
Class

Возвращаемое значение

Атрибуты

Применяется к

LoadObject<T>(Action<T,NSError>)

[ObjCRuntime.TV(11, 0)]
[ObjCRuntime.Watch(4, 0)]
public Foundation.NSProgress LoadObject<T> (Action<T,Foundation.NSError> completionHandler) where T : Foundation.NSObject, Foundation.INSItemProviderReading;
member this.LoadObject : Action<'T, Foundation.NSError (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)> -> Foundation.NSProgress (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)

Параметры типа

T

Параметры

completionHandler
Action<T,NSError>

Возвращаемое значение

Атрибуты

Применяется к