Compartir vía


CompareAttribute.IsValid(Object, ValidationContext) Método

Definición

Determina si un objeto especificado es válido.

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);
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

Parámetros

value
Object

Objeto que se va a validar.

validationContext
ValidationContext

Objeto que contiene información sobre la solicitud de validación.

Devoluciones

true si value es válido; en caso contrario, false.

Se aplica a