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