Partager via


RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) Constructeur

Définition

Initialise une nouvelle instance de 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)

Paramètres

attribute
RequiredAttribute

L’RequiredAttributeopérateur

stringLocalizer
IStringLocalizer

L’IStringLocalizeropérateur

S’applique à