StringLengthAttributeAdapter Constructor

Visual Studio 2010

Initializes a new instance of the StringLengthAttributeAdapter class.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public StringLengthAttributeAdapter(
	ModelMetadata metadata,
	ControllerContext context,
	StringLengthAttribute 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.

Community Additions

ADD
Show: