Table of Contents

Class ValidationRuleConfiguration

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

Encapsulates ValidationRule with its ValidationRuleDefinition identifier.

public sealed class ValidationRuleConfiguration
Inheritance
object
ValidationRuleConfiguration
Extension Methods

Constructors

ValidationRuleConfiguration()

Initializes a new instance of the ValidationRuleConfiguration class. This constructor serves for the purpose of deserialization.

public ValidationRuleConfiguration()

ValidationRuleConfiguration(string, ValidationRule)

Initializes a new instance of the ValidationRuleConfiguration class.

public ValidationRuleConfiguration(string identifier, ValidationRule validationRule)

Parameters

identifier string

Identifies type of the validationRule.

validationRule ValidationRule

Validation rule.

Exceptions

ArgumentException

Thrown when identifier is null or empty.

ArgumentNullException

Thrown when validationRule is null.

Properties

Identifier

Gets or sets identifier of the ValidationRule.

public string Identifier { get; set; }

Property Value

string

ValidationRule

Gets or sets validation rule.

public ValidationRule ValidationRule { get; set; }

Property Value

ValidationRule

See Also