Share via


IUIDropSession.LoadObjects Method

Definition

When implemented by the developer, instantiates every object in the drop session that has the type that is specified by the parameter.

[Foundation.Export("loadObjectsOfClass:completion:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSProgress LoadObjects(ObjCRuntime.Class itemProviderReadingClass, Action<Foundation.INSItemProviderReading[]> completion);
[<Foundation.Export("loadObjectsOfClass:completion:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member LoadObjects : ObjCRuntime.Class * Action<Foundation.INSItemProviderReading[]> -> Foundation.NSProgress
override this.LoadObjects : ObjCRuntime.Class * Action<Foundation.INSItemProviderReading[]> -> Foundation.NSProgress

Parameters

itemProviderReadingClass
Class

The class of objects to load.

completion
Action<INSItemProviderReading[]>

Handler to run after the objecs are loaded.

Returns

Attributes

Applies to