แก้ไข

แชร์ผ่าน


MinLengthAttributeAdapter Constructor

Definition

Initializes a new instance of the MinLengthAttributeAdapter class.

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)

Parameters

metadata
ModelMetadata

Specifies the metadata container for a model.

context
ModelBindingExecutionContext

Specifies the container for all of the information that is external to the model binding system.

attribute
MinLengthAttribute

Specifies the minimum length of array or string data that is allowed in a property.

Applies to