Open sandboxFocus

Constructor StringLengthAttribute

StringLengthAttribute(int)

Initializes a new instance of the StringLengthAttribute class.

Declaration
public StringLengthAttribute(int maximumLength)
Parameters
Type Name Description
int maximumLength

Maximum length.

StringLengthAttribute(int, int)

Initializes a new instance of the StringLengthAttribute class.

Declaration
public StringLengthAttribute(int minimumLength, int maximumLength)
Parameters
Type Name Description
int minimumLength

Minimum length.

int maximumLength

Maximum length.