PostSharp4.3//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.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public StringLengthAttribute(
	int maximumLength
)

Parameters

maximumLength
Type: System.Int32
Maximum length.
See Also