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

指定属性中允许的数组或字符串数据的最小长度。

适用于