PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsUrl­AttributeGet­Error­Message
Open sandboxFocus

UrlAttribute.GetErrorMessage Method

GetErrorMessage()

Gets unformatted error message as defined by the instance.

Declaration
[Obsolete("Use ContractExceptionFactory and ContractLocalizedTextProvider to generate error messages.")]
protected override string GetErrorMessage()
Returns
Type Description
string
Overrides
RegularExpressionAttribute.GetErrorMessage()
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.