String |
The StringLengthAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| StringLengthAttribute(Int32) | Initializes a new instance of the StringLengthAttribute class. | |
| StringLengthAttribute(Int32, Int32) | Initializes a new instance of the StringLengthAttribute class. | |
| StringLengthAttribute(Int32, Boolean, Char) | Initializes a new instance of the StringLengthAttribute class. | |
| StringLengthAttribute(Int32, Int32, Boolean, Char) | Initializes a new instance of the StringLengthAttribute class. |
| Name | Description | |
|---|---|---|
| MaxLen | The maximum allowed length. | |
| MinLen | The minimum allowed length. | |
| PadChar | The padding char. | |
| PadLeft | The padding direction, right by default. |
| Name | Description | |
|---|---|---|
| ValidateEdi |
Detects if an EDI data element has the correct length according to its EDI rule.
(Overrides ValidationAttributeValidateEdi(ValidationContext)) |