Język

MaxLengthAttributeAdapter Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy MaxLengthAttributeAdapter.

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

Określa kontener metadanych dla modelu.

context
ModelBindingExecutionContext

Określa kontener dla wszystkich informacji zewnętrznych dla systemu powiązania modelu.

attribute
MaxLengthAttribute

Określa maksymalną długość danych tablicy lub ciągów, które są dozwolone we właściwości.

Dotyczy