MinLengthAttributeAdapter Konstruktor

Definition

Initierar en ny instans av MinLengthAttributeAdapter klassen.

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

Parametrar

metadata
ModelMetadata

Anger metadatacontainern för en modell.

context
ModelBindingExecutionContext

Anger containern för all information som är extern för modellbindningssystemet.

attribute
MinLengthAttribute

Anger den minsta längden på matris- eller strängdata som tillåts i en egenskap.

Gäller för