Compartir a través de


RequiredAttributeAdapter Constructor

Definición

Inicializa una nueva instancia de la clase 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

Los metadatos.

context
ModelBindingExecutionContext

Contexto de ejecución.

attribute
RequiredAttribute

El atributo.

Se aplica a