NSItemProvider.RegisterObject 方法

定义

重载

RegisterObject(INSItemProviderWriting, NSItemProviderRepresentationVisibility)
RegisterObject(Class, NSItemProviderRepresentationVisibility, RegisterObjectRepresentationLoadHandler)
RegisterObject(Type, NSItemProviderRepresentationVisibility, RegisterObjectRepresentationLoadHandler)

RegisterObject(INSItemProviderWriting, NSItemProviderRepresentationVisibility)

[Foundation.Export("registerObject:visibility:")]
[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 void RegisterObject (Foundation.INSItemProviderWriting object, Foundation.NSItemProviderRepresentationVisibility visibility);
abstract member RegisterObject : Foundation.INSItemProviderWriting * Foundation.NSItemProviderRepresentationVisibility -> unit
override this.RegisterObject : Foundation.INSItemProviderWriting * Foundation.NSItemProviderRepresentationVisibility -> unit

参数

属性

适用于

RegisterObject(Class, NSItemProviderRepresentationVisibility, RegisterObjectRepresentationLoadHandler)

[Foundation.Export("registerObjectOfClass:visibility:loadHandler:")]
[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 void RegisterObject (ObjCRuntime.Class aClass, Foundation.NSItemProviderRepresentationVisibility visibility, Foundation.RegisterObjectRepresentationLoadHandler loadHandler);
abstract member RegisterObject : ObjCRuntime.Class * Foundation.NSItemProviderRepresentationVisibility * Foundation.RegisterObjectRepresentationLoadHandler -> unit
override this.RegisterObject : ObjCRuntime.Class * Foundation.NSItemProviderRepresentationVisibility * Foundation.RegisterObjectRepresentationLoadHandler -> unit

参数

aClass
Class
属性

适用于

RegisterObject(Type, NSItemProviderRepresentationVisibility, RegisterObjectRepresentationLoadHandler)

[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 void RegisterObject (Type type, Foundation.NSItemProviderRepresentationVisibility visibility, Foundation.RegisterObjectRepresentationLoadHandler loadHandler);
member this.RegisterObject : Type * Foundation.NSItemProviderRepresentationVisibility * Foundation.RegisterObjectRepresentationLoadHandler -> unit

参数

type
Type
属性

适用于