MinLengthAttributeAdapter Konstruktor

Definíció

Inicializálja a MinLengthAttributeAdapter osztály új példányát.

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)

Paraméterek

metadata
ModelMetadata

A modell metaadattárolójának megadása.

context
ModelBindingExecutionContext

Megadja a modellkötési rendszeren kívül található összes információ tárolóját.

attribute
MinLengthAttribute

Megadja a tulajdonságban engedélyezett tömb- vagy sztringadatok minimális hosszát.

A következőre érvényes: