Click or drag to resize
FormProviderGetFormComponents Method
Gets a list of form components which represent the model to be rendered in a view.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public virtual List<FormComponent> GetFormComponents(
	BizFormInfo bizFormInfo,
	BizFormComponentContext bizFormComponentContext = null
)

Parameters

bizFormInfo
Type: CMS.OnlineFormsBizFormInfo
Biz form for which to return a list of corresponding form components.
bizFormComponentContext (Optional)
Type: Kentico.Forms.Web.MvcBizFormComponentContext
Biz form component context, which is set in created components. If FormInfo is null, it is set to bizFormInfo.

Return Value

Type: ListFormComponent
Returns a list of form components.

Implements

IFormProviderGetFormComponents(BizFormInfo, BizFormComponentContext)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when bizFormInfo is null.
See Also