MaxLengthAttributeAdapter Constructor (ModelMetadata^, ControllerContext^, MaxLengthAttribute^)

 

Initializes a new instance of the MaxLengthAttribute class.

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

public:
MaxLengthAttributeAdapter(
	ModelMetadata^ metadata,
	ControllerContext^ context,
	MaxLengthAttribute^ 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::MaxLengthAttribute^

The MaxLength attribute.

Return to top
Show: