Class EmailValidationRule
Rule used to validate email addresses.
public class EmailValidationRule : ValidationRule<string>
- Inheritance
-
objectValidationRule<string>EmailValidationRule
- Inherited Members
- Extension Methods
Methods
GetTitle()
Gets a title for this instance of email validation rule.
public override string GetTitle()
Returns
- string
Returns text describing the validation rule.
Validate(string)
Returns true if given value is a valid email address.
protected override bool Validate(string value)
Parameters
value
stringForm component's value.
Returns
- bool
True if email is valid, otherwise false.