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

LocationContractAttribute.GetErrorMessage Method

GetErrorMessage()

Gets unformatted error message as defined by the instance.

Declaration
protected virtual string GetErrorMessage()
Returns
Type Description
System.String
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.