PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/String­Length­Attribute Class/String­Length­Attribute Constructor

StringLengthAttribute Constructor

Overload List
  NameDescription
Public methodStringLengthAttribute(Int32)
Initializes a new StringLengthAttribute and specifies the maximum length.
Public methodStringLengthAttribute(Int32, Int32)
Initializes a new StringLengthAttribute and specifies the maximum length and the minimum length.
See Also