Freigeben über


RequiredAttributeAdapter Konstruktor

Definition

Initialisiert eine neue Instanz der RequiredAttributeAdapter-Klasse.

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)

Parameter

metadata
ModelMetadata

Die Metadaten.

context
ModelBindingExecutionContext

Ausführungskontext

attribute
RequiredAttribute

Das Attribut.

Gilt für