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, 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
- class CustomEditorAttribute
- interface ICustomValidator
- Source: EmailEditorAttribute.cs