Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MinLengthAttribute Constructor

.NET Framework 4.6 and 4.5

Initializes a new instance of the MinLengthAttribute class.

Namespace:  System.ComponentModel.DataAnnotations
Assemblies:   System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)
  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public MinLengthAttribute(
	int length


Type: System.Int32

The length of the array or string data.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft