Skip to main content

EmailValidationMode

Defines which mode should be used for email validation.

Assembly: ServiceStack.dll​
View Source​
Declaration
public enum EmailValidationMode

Fields​

Net4xRegex​

Uses a regular expression for email validation. This is the same regex used by the EmailAddressAttribute in .NET 4.x.

View Source​
Declaration
[Obsolete("Regex-based email validation is not recommended and is no longer supported.")]
Net4xRegex = 0

AspNetCoreCompatible​

Uses the simplified ASP.NET Core logic for checking an email address, which just checks for the presence of an @ sign.

View Source​
Declaration
AspNetCoreCompatible = 1