StringLengthAttribute Constructor
StringLengthAttribute(Int32)
Initializes a new instance of the StringLengthAttribute class.
Declaration
public StringLengthAttribute(int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maximumLength | Maximum length. |
StringLengthAttribute(Int32, Int32)
Initializes a new instance of the StringLengthAttribute class.
Declaration
public StringLengthAttribute(int minimumLength, int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minimumLength | Minimum length. |
System.Int32 | maximumLength | Maximum length. |