RegularExpressionAttribute.GetErrorMessage Method |
Note: This API is now obsolete.
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
[ObsoleteAttribute("Use ContractExceptionFactory and ContractLocalizedTextProvider to generate error messages.")] protected override string GetErrorMessage()
Return Value
Type: StringSee remarks on LocationContractAttribute for information about message parameters.
Use of this method can be overridden by setting ErrorMessage property to non-null value.