Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsValid Method
Collapse the table of content
Expand the table of content

EmailAddressAttribute.IsValid Method

.NET Framework 4.6 and 4.5

Determines whether the specified value matches the pattern of a valid email address.

Namespace:  System.ComponentModel.DataAnnotations
Assemblies:   System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
  System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)

public override bool IsValid(
	Object value


Type: System.Object

The value to validate.

Return Value

Type: System.Boolean
true if the specified value is valid or null; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft