Click or drag to resize
SelectorFormComponentTPropertiesValidate Method
Performs validation on SelectedValue property checking whether such value is present in Items.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public override IEnumerable<ValidationResult> Validate(
	ValidationContext validationContext
)

Parameters

validationContext
Type: System.ComponentModel.DataAnnotationsValidationContext
The validation context.

Return Value

Type: IEnumerableValidationResult
Collection holding validation results.

Implements

IValidatableObjectValidate(ValidationContext)
See Also