Defines that a class contains settings editable from admin mode in plug-in manager.

Namespace:  EPiServer.PlugIn
Assembly:  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.

CopyC#
[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.

CopyC#
[PlugInProperty(Description = "Should we be enabled.", AdminControl = typeof(CheckBox), AdminControlValue = "Checked")]
public bool FunctionEnabled
{
    get { return _enabled; }
    set { _enabled = value; }
}

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    EPiServer.PlugIn..::.PlugInPropertyAttribute

See Also