MinLengthAttributeAdapter Constructor (ModelMetadata, ControllerContext, MinLengthAttribute)
Initializes a new instance of the MinLenghtAttribute class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public MinLengthAttributeAdapter(
ModelMetadata metadata,
ControllerContext context,
MinLengthAttribute attribute
)
public:
MinLengthAttributeAdapter(
ModelMetadata^ metadata,
ControllerContext^ context,
MinLengthAttribute^ attribute
)
new :
metadata:ModelMetadata *
context:ControllerContext *
attribute:MinLengthAttribute -> MinLengthAttributeAdapter
Public Sub New (
metadata As ModelMetadata,
context As ControllerContext,
attribute As MinLengthAttribute
)
Parameters
metadata
Type: System.Web.Mvc.ModelMetadataThe model metadata.
context
Type: System.Web.Mvc.ControllerContextThe controller context.
attribute
Type: System.ComponentModel.DataAnnotations.MinLengthAttributeThe minimum length attribute.
See Also
MinLengthAttributeAdapter Class
System.Web.Mvc Namespace
Return to top