Click or drag to resize

ValidationUtilsIsValidEmail Method

Validates that the provided email address is a valid email format. The algorithm used is based on the Microsoft Developer Network How to: Verify that Strings Are in Valid Email Format article.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool IsValidEmail(
	string email
)

Parameters

email
Type: SystemString
The email address to validate.

Return Value

Type: Boolean
True 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