StringLengthAttributeAdapter Constructor (ModelMetadata, ControllerContext, StringLengthAttribute)
Initializes a new instance of the StringLengthAttributeAdapter class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
new :
metadata:ModelMetadata *
context:ControllerContext *
attribute:StringLengthAttribute -> StringLengthAttributeAdapter
Parameters
- metadata
-
Type:
System.Web.Mvc.ModelMetadata
The model metadata.
- context
-
Type:
System.Web.Mvc.ControllerContext
The controller context.
- attribute
-
Type:
System.ComponentModel.DataAnnotations.StringLengthAttribute
The string-length attribute.
Show: