Table of Contents

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
object
Attribute
RegisterComponentAttribute
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

identifier string

Unique identifier of the component definition.

controllerType Type

Type of the component controller to register.

name string

Name 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()