[AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)] public sealed class ExportHandlerAttribute : PlatformExtensionAttribute
Exports a handler from a 3rd party assembly.
Remarks: Use this to register a custom control from your custom assembly. Use ExportInitializerAttribute when registering a lot of controls or to perform additional logic.

Constructors

ExportHandlerAttribute

#
public ExportHandlerAttribute(Type widgetType, Type handlerType)
Initializes a new instance of the ExportHandlerAttribute class.
widgetType (Type)Widget or handler interface type.
handlerType (Type)Handler that implements the widget's handler interface.

Properties

HandlerType

#
public Type HandlerType { get; }
Gets the type of the handler to instantiate

PlatformID

public string PlatformID { get; set; }
Gets or sets the platform identifier this extension should be loaded on, or null to load for all platforms.
inherited fromPlatformExtensionAttribute

WidgetType

#
public Type WidgetType { get; }
Gets the type of the widget or handler interface to map to

Methods

Register

#
public override void Register(Platform platform)
Registers the extension with the specified platform
platform (Platform)Platform to register this extension with.
true, if the extension was applied, false otherwise.

Supports

public virtual bool Supports(Platform platform)
Gets a value indicating that this extension supports the specified platform.
inherited fromPlatformExtensionAttribute
Remarks: PlatformExtensionAttribute.Register(Platform) will only be called if this returns true.
platform (Platform)Platform to determine if this extension applies.
true, if this extension supports the specified platform, false otherwise.