Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

attribute decorator to require email format of string c#

using System.ComponentModel.DataAnnotations;

[EmailAddress(ErrorMessage = "Invalid Email Address")]
public string Email { get; set; }
 
PREVIOUS NEXT
Tagged: #attribute #decorator #require #email #format #string
ADD COMMENT
Topic
Name
4+6 =