ValidationRule Class |
Namespace: Kentico.Forms.Web.Mvc
[SerializableAttribute] public abstract class ValidationRule : IModelMetadataModifier
The ValidationRule type exposes the following members.
Name | Description | |
---|---|---|
![]() | ValidationRule |
Name | Description | |
---|---|---|
![]() | ErrorMessage |
Gets or sets the error message to be shown when the form component's value is invalid.
|
![]() | InstanceIdentifier |
Gets or sets identifier of the validation rule instance.
|
![]() | Title |
Gets a title for this instance of validation rule.
|
Name | Description | |
---|---|---|
![]() | GetTitle |
Gets a title for this instance of validation rule such as 'Maximum length is 100'.
|
![]() | IsValueValid |
Validates the form component's value and returns true if the value is valid.
|
![]() | ModifyMetadata |
Modifies modelMetadata according to the current object.
|