RequiredAttributeAdapter Конструктор
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Инициализирует новый экземпляр класса RequiredAttributeAttribute.
public RequiredAttributeAdapter (System.Web.Mvc.ModelMetadata metadata, System.Web.Mvc.ControllerContext context, System.ComponentModel.DataAnnotations.RequiredAttribute attribute);
new System.Web.Mvc.RequiredAttributeAdapter : System.Web.Mvc.ModelMetadata * System.Web.Mvc.ControllerContext * System.ComponentModel.DataAnnotations.RequiredAttribute -> System.Web.Mvc.RequiredAttributeAdapter
Public Sub New (metadata As ModelMetadata, context As ControllerContext, attribute As RequiredAttribute)
Параметры
- metadata
- ModelMetadata
Метаданные модели.
- context
- ControllerContext
Контекст контроллера.
- attribute
- RequiredAttribute
Обязательный атрибут.