Click or drag to resize
ValidationHelperAreEmails Method
Returns true if the object representation matches the Email list separated by specified character (default separator is semicolon).

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static bool AreEmails(
	Object value,
	string separator = null,
	bool checkLength = false
)

Parameters

value
Type: SystemObject
Value to check
separator (Optional)
Type: SystemString
String that delimits the addresses
checkLength (Optional)
Type: SystemBoolean
if true checks whether value length is no longer than MULTIPLE_EMAILS_LENGTHand each individual e-mail is no longer than SINGLE_EMAIL_LENGTH

Return Value

Type: Boolean
See Also