Class SentinetEmailAddressAttribute
Validates email address.
Inheritance
System.Object
SentinetEmailAddressAttribute
Namespace: Nevatech.Vsb.Repository
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class SentinetEmailAddressAttribute : RegularExpressionAttribute
Remarks
This is a relaxed version of System.ComponentModel.DataAnnotations.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 |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.String |
IsValid(Object)
Declaration
public override bool IsValid(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type | Description |
---|---|
System.Boolean |