NSItemProvider.LoadObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
Parameters
- aClass
- Class
- completionHandler
- Action<INSItemProviderReading,NSError>
Returns
- Attributes
Applies to
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)
Type Parameters
- T
Parameters
Returns
- Attributes