Click or drag to resize
IFormBuilderModelManagerBindModelAsync Method
Binds form components according to data source used by formComponentBinder. Moreover components are validated and the model state is filled with any errors that occurred during validation.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
Task<List<FormComponent>> BindModelAsync(
	IFormComponentBinder formComponentBinder,
	FormBuilderBindingContext bindingContext
)

Parameters

formComponentBinder
Type: Kentico.Forms.Web.MvcIFormComponentBinder
Responsible for binding form components. Default binder that binds from form collection can be created by CreateFormComponentBinder(Controller) method.
bindingContext
Type: Kentico.Forms.Web.MvcFormBuilderBindingContext
Context containing necessary data for binding.

Return Value

Type: TaskListFormComponent
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when formComponentBinder or bindingContext is null.
See Also