Partilhar via


RequiredAttributeAdapter Construtor

Definição

Inicializa uma nova instância da classe RequiredAttributeAdapter.

public:
 RequiredAttributeAdapter(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context, System::ComponentModel::DataAnnotations::RequiredAttribute ^ attribute);
public RequiredAttributeAdapter (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context, System.ComponentModel.DataAnnotations.RequiredAttribute attribute);
new System.Web.ModelBinding.RequiredAttributeAdapter : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext * System.ComponentModel.DataAnnotations.RequiredAttribute -> System.Web.ModelBinding.RequiredAttributeAdapter
Public Sub New (metadata As ModelMetadata, context As ModelBindingExecutionContext, attribute As RequiredAttribute)

Parâmetros

metadata
ModelMetadata

Os metadados.

context
ModelBindingExecutionContext

O contexto de execução.

attribute
RequiredAttribute

O atributo.

Aplica-se a