EmailEditorAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Web
Email editor type with two inputs. Prefer EmailAddressEditorAttribute which uses a single input.
[AttributeUsage(AttributeTargets.All)]
public class EmailEditorAttribute : CustomEditorAttribute, IImpliesValidation
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. |
| GetImpliedValidation() | Gets the rule an email editor implies, so the value is checked as an email address on the server, and by the forms, see ValidateEmailAttribute. |
| static readonly EmailPattern | The default email validation pattern, which is the one of ValidateEmailAttribute. |
| const Key | The editor type key. |
See Also
- class CustomEditorAttribute
- interface IImpliesValidation
- Source: EmailEditorAttribute.cs