Partager via


RequiredAttributeAdapter Constructeur

Définition

Initialise une nouvelle instance de la 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)

Paramètres

metadata
ModelMetadata

Métadonnées.

context
ModelBindingExecutionContext

Contexte d'exécution.

attribute
RequiredAttribute

L'attribut.

S’applique à