Click or drag to resize
FormComponentPropertiesMapperFromFieldInfo Method
Maps an instance of FormFieldInfo to corresponding FormComponentProperties. To extract identifier of corresponding FormComponentDefinition use GetComponentIdentifier(FormFieldInfo).

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public virtual FormComponentProperties FromFieldInfo(
	FormFieldInfo formFieldInfo
)

Parameters

formFieldInfo
Type: CMS.FormEngineFormFieldInfo
Form field to be mapped.

Return Value

Type: FormComponentProperties
Returns an instance of FormComponentProperties which corresponds to given form field.

Implements

IFormComponentPropertiesMapperFromFieldInfo(FormFieldInfo)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when formFieldInfo is null.
InvalidOperationException

Thrown when formFieldInfo contains an unknown form component identifier

-or-

when corresponding component properties contain a property of type which is not supported by DataTypeManager.

See Also