Sdílet prostřednictvím


MaxLengthAttributeAdapter Konstruktor

Definice

Inicializuje novou instanci MaxLengthAttributeAdapter třídy .

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)

Parametry

metadata
ModelMetadata

Určuje kontejner metadat pro model.

context
ModelBindingExecutionContext

Určuje kontejner pro všechny informace, které jsou externí pro systém vazby modelu.

attribute
MaxLengthAttribute

Určuje maximální délku dat pole nebo řetězce, která je povolena ve vlastnosti .

Platí pro