Compartir a través de


RequiredAttributeAdapter Clase

Definición

public ref class RequiredAttributeAdapter sealed : Microsoft::AspNetCore::Mvc::DataAnnotations::AttributeAdapterBase<System::ComponentModel::DataAnnotations::RequiredAttribute ^>
public sealed class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
type RequiredAttributeAdapter = class
    inherit AttributeAdapterBase<RequiredAttribute>
Public NotInheritable Class RequiredAttributeAdapter
Inherits AttributeAdapterBase(Of RequiredAttribute)
Herencia

Constructores

RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer)

Inicializa una nueva instancia de la clase RequiredAttributeAdapter.

Propiedades

Attribute

Obtiene la instancia de TAttribute.

(Heredado de ValidationAttributeAdapter<TAttribute>)

Métodos

AddValidation(ClientModelValidationContext)

AttributeAdapterBase<TAttribute> para RequiredAttribute

GetErrorMessage(ModelMetadata, Object[])

Obtiene el mensaje de error con el Attributeformato .

(Heredado de ValidationAttributeAdapter<TAttribute>)
GetErrorMessage(ModelValidationContextBase)

Obtiene el mensaje de error.

Se aplica a