StringLengthAttribute(int)
Initializes a new StringLengthAttribute and specifies the maximum length.
Declaration
public StringLengthAttribute(int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
int | maximumLength | Maximum length. |
StringLengthAttribute(int, int)
Initializes a new StringLengthAttribute and specifies the maximum length and the minimum length.
Declaration
public StringLengthAttribute(int minimumLength, int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
int | minimumLength | Minimum length. |
int | maximumLength | Maximum length. |