PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Strictly­Less­Than­Attribute Class/Strictly­Less­Than­Attribute Methods/Strictly­Less­Than­Attribute.​Get­Error­Message Method

StrictlyLessThanAttribute.GetErrorMessage Method

Gets unformatted error message as defined by the instance.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
protected override string GetErrorMessage()

Return Value

Type: String
Remarks

See remarks on LocationContractAttribute for information about message parameters.

Use of this method can be overridden by setting ErrorMessage property to non-null value.

See Also