Compartir a través de


RemoteAttributeBase.AddValidation(ClientModelValidationContext) Método

Definición

Agrega atributos HTML de validación discretas a ClientModelValidationContext.

public:
 virtual void AddValidation(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ClientModelValidationContext ^ context);
public virtual void AddValidation (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context);
abstract member AddValidation : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext -> unit
override this.AddValidation : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext -> unit
Public Overridable Sub AddValidation (context As ClientModelValidationContext)

Parámetros

context
ClientModelValidationContext

ClientModelValidationContext para agregar atributos HTML de validación discreta.

Implementaciones

Comentarios

Llama a la implementación derivada ValidationAttribute de GetUrl(ClientModelValidationContext).

Se aplica a