RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) Constructor  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.RequiredAttributeAdapterPublic Sub New (attribute As RequiredAttribute, stringLocalizer As IStringLocalizer)Parameters
- attribute
- RequiredAttribute
The RequiredAttribute.
- stringLocalizer
- IStringLocalizer
The IStringLocalizer.