Aracılığıyla paylaş


MinLengthAttributeAdapter Oluşturucu

Tanım

MinLengthAttributeAdapter sınıfının yeni bir örneğini başlatır.

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)

Parametreler

metadata
ModelMetadata

Modelin meta veri kapsayıcısını belirtir.

context
ModelBindingExecutionContext

Model bağlama sisteminin dışındaki tüm bilgilerin kapsayıcısını belirtir.

attribute
MinLengthAttribute

Bir özellikte izin verilen dizi veya dize verilerinin en düşük uzunluğunu belirtir.

Şunlara uygulanır