ExportHandlerAttribute
PlatformExtensionAttributeAttribute[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
Properties
HandlerType
#Gets the type of the handler to instantiate
Value: The type of the handler for the widget.
PlatformID
Gets or sets the platform identifier this extension should be loaded on, or null to load for all platforms.
Value: The platform identifier.
WidgetType
#Gets the type of the widget or handler interface to map to
Value: The type of the widget or handler.
Methods
Register
#Registers the extension with the specified platform
Parameters:
| platform (Platform) | Platform to register this extension with. |
Returns:
true, if the extension was applied, false otherwise.Overrides: PlatformExtensionAttribute.Register
Supports
Gets a value indicating that this extension supports the specified platform.
Remarks: PlatformExtensionAttribute.Register(Platform) will only be called if this returns
true.Parameters:
| platform (Platform) | Platform to determine if this extension applies. |
Returns:
true, if this extension supports the specified platform, false otherwise.