Click or drag to resize
RegisterSectionAttribute Constructor (String, String, Type, String)
Creates an instance of the RegisterSectionAttribute class.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public RegisterSectionAttribute(
	string identifier,
	string name,
	Type propertiesType = null,
	string customViewName = null
)

Parameters

identifier
Type: SystemString
Unique identifier of the section definition.
name
Type: SystemString
Name of the registered section.
propertiesType (Optional)
Type: SystemType
Type of the registered section properties model. The type needs to implement the ISectionProperties interface.
customViewName (Optional)
Type: SystemString
Custom view name for the registered section. If not specified, the default system view name in format '~/Shared/Sections/_{identifier}' is used.
Remarks
Make sure to provide unique identifier for the section definition from the start. This identifier is used within the page configuration and any further change can lead to incorrect configuration load. Consider specifying identifier in format 'CompanyName.ModuleName.SectionName', e.g. 'Kentico.Content.SingleColumn'. Use this attribute when simple section is being developed and no custom controller is needed.
See Also