Class SentinetEmailAddressAttribute
Validates email address.
Inheritance
SentinetEmailAddressAttribute
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class SentinetEmailAddressAttribute : RegularExpressionAttribute, _Attribute
Remarks
This is a relaxed version of EmailAddressAttribute that allows email addresses without top level domains such as .com, .gov, etc.
Constructors
SentinetEmailAddressAttribute()
Initializes a new instance of SentinetEmailAddressAttribute.
Declaration
public SentinetEmailAddressAttribute()
Methods
FormatErrorMessage(string)
Declaration
public override string FormatErrorMessage(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Returns
| Type | Description |
|---|---|
| string |
Overrides
IsValid(object)
Declaration
public override bool IsValid(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value |
Returns
| Type | Description |
|---|---|
| bool |