PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / String­Length­Attribute Class / String­Length­Attribute Properties / String­Length­Attribute.​Maximum­Length Property

StringLengthAttribute.MaximumLength Property

Gets 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)
Syntax
C#
public int MaximumLength { get; }

Property Value

Type: Int32
See Also