StringLengthAttribute Constructor (Int32) |
Initializes a new StringLengthAttribute and specifies the maximum length.
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public StringLengthAttribute( int maximumLength )
Parameters
- maximumLength
- Type: System.Int32
Maximum length.