Table of Contents

Class RegisterFormBuilderValidationRuleAttribute

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

Registers a live site form validation rule.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class RegisterFormBuilderValidationRuleAttribute : Attribute
Inheritance
object
Attribute
RegisterFormBuilderValidationRuleAttribute
Extension Methods

Remarks

Use attribute to register validation rule for live site form components to the system.

Constructors

RegisterFormBuilderValidationRuleAttribute(string, Type, string, string)

Initializes a new instance of the RegisterFormBuilderValidationRuleAttribute class.

public RegisterFormBuilderValidationRuleAttribute(string identifier, Type ruleType, string name, string description = null)

Parameters

identifier string

Unique identifier of the validation rule.

ruleType Type

Type implementing the validation rule.

name string

Name of the validation rule.

description string

Description of the validation rule.

Properties

Description

Description of the validation rule.

public string Description { get; }

Property Value

string

Identifier

Unique identifier of the validation rule.

public string Identifier { get; }

Property Value

string

Name

Name of the validation rule.

public string Name { get; }

Property Value

string

RuleType

Type implementing the validation rule.

public Type RuleType { get; }

Property Value

Type