Export (0) Print
Expand All

MaxLengthAttribute Constructor (Int32)

Initializes a new instance of the MaxLengthAttribute class.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  EntityFramework (in EntityFramework.dll)

public MaxLengthAttribute(
	int length
)

Parameters

length
Type: System.Int32
The maximum allowable length of array/string data. Value must be greater than zero.
Show:
© 2014 Microsoft