MembershipPasswordAttribute.IsValid(Object, ValidationContext) Method

Definition

Validates the specified value with respect to the current validation attribute.

C#
protected override System.ComponentModel.DataAnnotations.ValidationResult IsValid(object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext);

Parameters

value
Object

The value to validate.

validationContext
ValidationContext

The context information about the validation operation.

Returns

An instance of the ValidationResult class.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1