Compartir a través de


RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) Constructor

Definición

Inicializa una nueva instancia de la clase RequiredAttributeAdapter.

public:
 RequiredAttributeAdapter(System::ComponentModel::DataAnnotations::RequiredAttribute ^ attribute, Microsoft::Extensions::Localization::IStringLocalizer ^ stringLocalizer);
public RequiredAttributeAdapter (System.ComponentModel.DataAnnotations.RequiredAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer);
public RequiredAttributeAdapter (System.ComponentModel.DataAnnotations.RequiredAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer? stringLocalizer);
new Microsoft.AspNetCore.Mvc.DataAnnotations.RequiredAttributeAdapter : System.ComponentModel.DataAnnotations.RequiredAttribute * Microsoft.Extensions.Localization.IStringLocalizer -> Microsoft.AspNetCore.Mvc.DataAnnotations.RequiredAttributeAdapter
Public Sub New (attribute As RequiredAttribute, stringLocalizer As IStringLocalizer)

Parámetros

Se aplica a