Table of Contents

Class DataTypeCodeGenerationManager

Namespace
CMS.FormEngine
Assembly
CMS.FormEngine.dll

Class managing registration and usage of code generator for multiple field data types.

public static class DataTypeCodeGenerationManager
Inheritance
object
DataTypeCodeGenerationManager

Methods

RegisterDataTypeCodeGenerator(string, Func<DataTypeCodeGenerator>)

Registers generatorInitializer callback creating code generator for given dataType.

public static void RegisterDataTypeCodeGenerator(string dataType, Func<DataTypeCodeGenerator> generatorInitializer)

Parameters

dataType string

Data type FieldDataType for which code generator is registered.

generatorInitializer Func<DataTypeCodeGenerator>

Callback for creating code generator object.

Remarks

All generators has to be registered during initialization of Kentico modules as part of respective override of OnInit(ModuleInitParameters) method.

Exceptions

ArgumentException

Thrown when dataType is null or empty.

ArgumentNullException

Thrown when generatorInitializer is null.