LocationContractAttribute.ErrorMessage Property |
Note: This API is now obsolete.
Gets or sets the error message formatting string.
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
C#
[ObsoleteAttribute("Use ContractExceptionFactory and ContractLocalizedTextProvider to generate error messages.")] public string ErrorMessage { get; set; }
Property Value
Type: StringSee remarks on LocationContractAttribute for information about message parameters.
If the value of this property is set to
Property Value
Type: Stringnull, GetErrorMessage() will be used to obtain the error message.
Set this property only for legacy purposes. Otherwise, use GetErrorMessage() method.