Click or drag to resize
NameComponent.Validate Method
Determines whether Value of this component has correct code name format and whether it is unique in whole form.

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

Parameters

validationContext
Type: System.ComponentModel.DataAnnotations.ValidationContext
The validation context.

Return Value

Type: IEnumerable<ValidationResult>
A collection that holds failed-validation information.

Implements

IValidatableObject.Validate(ValidationContext)
See Also