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

Nombre Description
RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer)

Inicializa una nueva instancia de la clase RequiredAttributeAdapter.

Propiedades

Nombre Description
Attribute

Obtiene la instancia de TAttribute.

(Heredado de ValidationAttributeAdapter<TAttribute>)

Métodos

Nombre Description
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