Class RegisterComponentAttribute
- Namespace
- Kentico.PageBuilder.Web.Mvc
- Assembly
- Kentico.Content.Web.Mvc.dll
Registers definition of Page builder feature component.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public abstract class RegisterComponentAttribute : Attribute, IPreInitAttribute
- Inheritance
-
objectAttributeRegisterComponentAttribute
- Implements
- Derived
- Extension Methods
Constructors
RegisterComponentAttribute(string, Type, string)
Creates an instance of the RegisterComponentAttribute class.
protected RegisterComponentAttribute(string identifier, Type controllerType, string name)
Parameters
identifierstringUnique identifier of the component definition.
controllerTypeTypeType of the component controller to register.
namestringName of the registered component.
Properties
Description
Description of the registered component.
public string Description { get; set; }
Property Value
- string
IconClass
Font-icon CSS class of the registered component.
public string IconClass { get; set; }
Property Value
- string
Identifier
Unique identifier of the component definition.
public string Identifier { get; }
Property Value
- string
MarkedType
Type of the registered component controller.
public Type MarkedType { get; protected set; }
Property Value
- Type
Name
Name of the registered component.
public string Name { get; }
Property Value
- string
Methods
PreInit()
Registers the component definition during application pre-initialization.
public abstract void PreInit()