MembershipPasswordAttribute.IsValid Method (Object, ValidationContext)
.NET Framework (current version)
Validates the specified value with respect to the current validation attribute.
Assembly: System.Web (in System.Web.dll)
protected override ValidationResult IsValid( object value, ValidationContext validationContext )
Parameters
- value
-
Type:
System.Object
The value to validate.
- validationContext
-
Type:
System.ComponentModel.DataAnnotations.ValidationContext
The context information about the validation operation.
Return Value
Type: System.ComponentModel.DataAnnotations.ValidationResultAn instance of the ValidationResult class.
.NET Framework
Available since 4.5
Available since 4.5
Show: