EmailValidationRule
Wisej.Web.EmailValidationRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Validates email addresses.
Constructors
EmailValidationRule()
Initializes a new instance of EmailValidationRule.
Properties
InvalidDomains
String[]: Returns or sets a list of invalid domains: i.e. "dropmail.com", "protonmail.com". (Default: null
)
Name
String: Returns or sets the name of the validation rule. (Default: "Email"
)
Required
Boolean: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
ValidDomains
String[]: Returns or sets a list of valid domains: i.e. "mycompany.com", "gmail.com", "hotmail.com". (Default: null
)
Methods
OnValidating(control)
Validates the control using the validation rule.
Parameter
Type
Description
Returns: Boolean. true if the validation is successful; otherwise false.
Last updated