Class RegisterFormBuilderValidationRuleAttribute
Registers a live site form validation rule.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class RegisterFormBuilderValidationRuleAttribute : Attribute
- Inheritance
-
objectAttributeRegisterFormBuilderValidationRuleAttribute
- 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
identifierstringUnique identifier of the validation rule.
ruleTypeTypeType implementing the validation rule.
namestringName of the validation rule.
descriptionstringDescription 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