Click or drag to resize
IFormComponentActivatorCreateFormComponent Method (FormComponentDefinition, FormComponentProperties, FormComponentContext)
Creates a new instance of the form component specified by its definition using the properties given.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
FormComponent CreateFormComponent(
	FormComponentDefinition definition,
	FormComponentProperties properties,
	FormComponentContext context
)

Parameters

definition
Type: Kentico.Forms.Web.MvcFormComponentDefinition
Form component definition for which to create a component instance.
properties
Type: Kentico.Forms.Web.MvcFormComponentProperties
Properties to be loaded into the component.
context
Type: Kentico.Forms.Web.MvcFormComponentContext
Contextual information specifying where the form component is being used.

Return Value

Type: FormComponent
Returns an instance of form component as described by its definition.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when definition or properties is null.
See Also