RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) Constructor

Definition

Initializes a new instance of 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)

Parameters

stringLocalizer
IStringLocalizer

The IStringLocalizer.

Applies to