EmailValidationRule

Wisej.Web.EmailValidationRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Validates email addresses.

public class EmailValidationRule : ValidationRule

Constructors

Initializes a new instance of EmailValidationRule.

Properties

String[]: Returns or sets a list of invalid domains: i.e. "dropmail.com", "protonmail.com". (Default: null)

String: Returns or sets the name of the validation rule. (Default: "Email")

Boolean: Returns or sets whether the control can be empty or its required to have a value. (Default: False)

String[]: Returns or sets a list of valid domains: i.e. "mycompany.com", "gmail.com", "hotmail.com". (Default: null)

Methods

Validates the control using the validation rule.

ParameterTypeDescription

control

Returns: Boolean. true if the validation is successful; otherwise false.

Last updated