Click or drag to resize
FormBuilderModelBinderBindModel Method
Method called automatically when parameter is annotated with with type set to this binder. Performs validation of the model and in case of any errors populates the ModelState of the controllerContext.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public Object BindModel(
	ControllerContext controllerContext,
	ModelBindingContext bindingContext
)

Parameters

controllerContext
Type: ControllerContext
Controller context of the current request.
bindingContext
Type: ModelBindingContext
Binding context.

Return Value

Type: Object
Model instance containing values bound from request data.

Implements

IModelBinder.BindModel(ControllerContext, ModelBindingContext)
See Also