Sdílet prostřednictvím


RequiredAttributeAdapter Konstruktor

Definice

Inicializuje novou instanci RequiredAttributeAttribute třídy.

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)

Parametry

metadata
ModelMetadata

Metadata modelu.

context
ControllerContext

Kontext kontroleru.

attribute
RequiredAttribute

Požadovaný atribut.

Platí pro