StringLengthAttributeAdapter Constructor
Initializes a new instance of the StringLengthAttributeAdapter class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub New ( _ metadata As ModelMetadata, _ context As ControllerContext, _ attribute As StringLengthAttribute _ ) 'Usage Dim metadata As ModelMetadata Dim context As ControllerContext Dim attribute As StringLengthAttribute Dim instance As New StringLengthAttributeAdapter(metadata, _ context, attribute)
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: