Freigeben über


RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) Konstruktor

Definition

Initialisiert eine neue Instanz von 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)

Parameter

stringLocalizer
IStringLocalizer

Die IStringLocalizer.

Gilt für: