MaxLengthAttributeAdapter Konstruktor

Definition

Initierar en ny instans av MaxLengthAttributeAdapter klassen.

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

Parametrar

metadata
ModelMetadata

Anger metadatacontainern för en modell.

context
ModelBindingExecutionContext

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

attribute
MaxLengthAttribute

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

Gäller för