Defines that a class contains settings editable from admin mode in plug-in manager.
Namespace:
EPiServer.PlugInAssembly: EPiServer (in EPiServer.dll) Version: 5.2.375.236
Syntax
| C# |
|---|
[AttributeUsageAttribute(AttributeTargets.Property)] public sealed class PlugInPropertyAttribute : Attribute |
Examples
Adding a setting for changing the root page for a special function.
[PlugInProperty(Description = "Sets the root container.", AdminControl = typeof(InputPageReference), AdminControlValue = "PageLink")] public PageReference EPiID { get { return _epiID; } set { _epiID = value; } }
Adding a setting for a boolean value with a checkbox as GUI.
[PlugInProperty(Description = "Should we be enabled.", AdminControl = typeof(CheckBox), AdminControlValue = "Checked")] public bool FunctionEnabled { get { return _enabled; } set { _enabled = value; } }