PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Location­Contract­Attribute Class/Location­Contract­Attribute Methods/Location­Contract­Attribute.​Get­Error­Message Method

LocationContractAttribute.GetErrorMessage Method

Note: This API is now obsolete.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
[ObsoleteAttribute("Use ContractExceptionFactory and ContractLocalizedTextProvider to generate error messages.")]
protected virtual string GetErrorMessage()

Return Value

Type: String
See Also