[AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)]
public abstract class PlatformExtensionAttribute : Attribute
Base extension attribute to wire up 3rd party controls and native handler implementations.
Remarks: All extensions are loaded via Platform.LoadAssembly(Assembly). Use the PlatformID property to specify which platform the extension applies to.
Properties
PlatformID
#Gets or sets the platform identifier this extension should be loaded on, or null to load for all platforms.
Value: The platform identifier.
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.Supports
#Gets a value indicating that this extension supports the specified platform.
Remarks: 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.