StringLengthAttributeAdapter 构造函数

定义

初始化 StringLengthAttributeAdapter 类的新实例。

public:
 StringLengthAttributeAdapter(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context, System::ComponentModel::DataAnnotations::StringLengthAttribute ^ attribute);
public StringLengthAttributeAdapter (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context, System.ComponentModel.DataAnnotations.StringLengthAttribute attribute);
new System.Web.ModelBinding.StringLengthAttributeAdapter : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext * System.ComponentModel.DataAnnotations.StringLengthAttribute -> System.Web.ModelBinding.StringLengthAttributeAdapter
Public Sub New (metadata As ModelMetadata, context As ModelBindingExecutionContext, attribute As StringLengthAttribute)

参数

metadata
ModelMetadata

元数据。

context
ModelBindingExecutionContext

该执行上下文。

attribute
StringLengthAttribute

属性。

适用于