Поделиться через


RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) Конструктор

Определение

Инициализирует новый экземпляр 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)

Параметры

Применяется к