PlatformExtensionAttribute

AttributeReferences
[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

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

Methods

Register

#
public abstract 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.
Remarks: 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.