Table of Contents

Interface IFormValidationRule

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Interface for form validation rules.

public interface IFormValidationRule
Extension Methods

Methods

GetDefaultErrorMessage()

Gets the default error message for the validation rule.

Task<string> GetDefaultErrorMessage()

Returns

Task<string>

GetProperties()

Gets the actual properties instance from the validation rule.

FormValidationRuleProperties GetProperties()

Returns

FormValidationRuleProperties

SetProperties(FormValidationRuleProperties)

Sets the form validation rule properties.

void SetProperties(FormValidationRuleProperties properties)

Parameters

properties FormValidationRuleProperties