C# Class EmailValidation.EmailAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Mostrar archivo Open project: jstedfast/EmailValidation

Public Methods

Method Description
EmailAttribute ( bool allowTopLevelDomains = false, bool allowInternational = false ) : System

Protected Methods

Method Description
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Method Details

EmailAttribute() public method

public EmailAttribute ( bool allowTopLevelDomains = false, bool allowInternational = false ) : System
allowTopLevelDomains bool
allowInternational bool
return System

IsValid() protected method

protected IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
return System.ComponentModel.DataAnnotations.ValidationResult