Click or drag to resize
ValidatorIsEmail Method
Determines whether source control's value is valid email.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public Validator IsEmail(
	Object source,
	string errorMessage,
	bool checkLength = false
)

Parameters

source
Type: SystemObject
Control to validate
errorMessage
Type: SystemString
It is returned when control's value is not valid email
checkLength (Optional)
Type: SystemBoolean
if true checks whether email length is no longer than SINGLE_EMAIL_LENGTH

Return Value

Type: Validator
See Also