PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Strictly­Greater­Than­Attribute Class / Strictly­Greater­Than­Attribute Methods / Strictly­Greater­Than­Attribute.​Get­Error­Message Method
StrictlyGreaterThanAttribute.GetErrorMessage Method
Gets unformatted error message as defined by the instance.

Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: (
protected override string GetErrorMessage()

Return Value

Type: String

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