Table of Contents

Class RegisterComponentAttribute

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Basic implementation allowing to register definition of Form 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 type, string name)

Parameters

identifier string

Unique identifier definition.

type Type

Type which serves the component.

name string

Name of the registered component.

Properties

Identifier

Unique identifier of the definition.

public string Identifier { get; }

Property Value

string

MarkedType

Component serving type.

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 Form Builder definition during application pre-initialization.

public abstract void PreInit()