ValidationUtilsIsValidEmail Method |
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic static bool IsValidEmail(
string email
)
Public Shared Function IsValidEmail (
email As String
) As Boolean
Parameters
- email
- Type: SystemString
The email address to validate.
Return Value
Type:
BooleanTrue if the email address was determined to be valid, else false.
Remarks
Note that the IsValidEmail method does not perform authentication to validate the email address. It merely determines whether its format
is valid for an email address. In addition, the IsValidEmail method does not verify that the top-level domain name is a valid domain name
listed at the IANA Root Zone Database, which would require a look-up operation. Instead, the regular expression merely verifies that the
top-level domain name consists of between two and twenty-four ASCII characters, with alphanumeric first and last characters and the
remaining characters being either alphanumeric or a hyphen (-).
See Also