Skip to content

EmailEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Web

Email editor type with two inputs. Prefer EmailAddressEditorAttribute which uses a single input.

[AttributeUsage(AttributeTargets.All)]
public class EmailEditorAttribute : CustomEditorAttribute, ICustomValidator

Public Members

name description
EmailEditorAttribute() Initializes a new instance of the EmailEditorAttribute class.
Domain { get; set; } Gets or sets the domain.
ReadOnlyDomain { get; set; } Gets or sets a value indicating whether the domain should be read-only.
Validate(…) Validates the email address.
static readonly EmailPattern The default email validation pattern.
const Key The editor type key.

See Also