Constructor StringLengthAttribute
| Improve this Doc View SourceStringLengthAttribute(Int32)
Initializes a new instance of the StringLengthAttribute class by using a specified maximum length.
Declaration
public StringLengthAttribute(int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maximumLength | The maximum length of a string. |