MinLengthAttributeAdapter Constructor (ModelMetadata, ModelBindingExecutionContext, MinLengthAttribute)
Initializes a new instance of the MinLengthAttributeAdapter class.
Assembly: System.Web (in System.Web.dll)
new :
metadata:ModelMetadata *
context:ModelBindingExecutionContext *
attribute:MinLengthAttribute -> MinLengthAttributeAdapter
Parameters
- metadata
-
Type:
System.Web.ModelBinding.ModelMetadata
Specifies the metadata container for a model.
- context
-
Type:
System.Web.ModelBinding.ModelBindingExecutionContext
Specifies the container for all of the information that is external to the model binding system.
- attribute
-
Type:
System.ComponentModel.DataAnnotations.MinLengthAttribute
Specifies the minimum length of array or string data that is allowed in a property.
.NET Framework
Available since 4.6.2
Available since 4.6.2
Show: