MembershipPasswordAttribute.IsValid(Object, ValidationContext) 方法

定义

根据当前的验证特性来验证指定的值。

protected:
 override System::ComponentModel::DataAnnotations::ValidationResult ^ IsValid(System::Object ^ value, System::ComponentModel::DataAnnotations::ValidationContext ^ validationContext);
protected override System.ComponentModel.DataAnnotations.ValidationResult IsValid (object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext);
override this.IsValid : obj * System.ComponentModel.DataAnnotations.ValidationContext -> System.ComponentModel.DataAnnotations.ValidationResult
Protected Overrides Function IsValid (value As Object, validationContext As ValidationContext) As ValidationResult

参数

value
Object

要验证的值。

validationContext
ValidationContext

有关验证操作的上下文信息。

返回

ValidationResult

ValidationResult 类的实例。

适用于