MinLengthAttributeAdapter 建構函式

定義

初始化 MinLengthAttributeAdapter 類別的新執行個體。

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)

參數

metadata
ModelMetadata

指定模型的元資料容器。

context
ModelBindingExecutionContext

指定所有模型綁定系統外部資訊的容器。

attribute
MinLengthAttribute

指定屬性中允許的陣列或字串資料的最小長度。

適用於