PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / String­Length­Attribute Class / String­Length­Attribute Constructor / String­Length­Attribute Constructor (Int32)

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: 6.7.12.0 (6.7.12.0)
Syntax
C#
public StringLengthAttribute(
	int maximumLength
)

Parameters

maximumLength
Type: System.Int32
Maximum length.
See Also