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

LocationContractAttribute.ErrorMessage Property

ErrorMessage

Gets or sets the error message formatting string.

Declaration
public string ErrorMessage { get; set; }
Property Value
Type Description
System.String
Remarks

See remarks on LocationContractAttribute for information about message parameters.

If the value of this property is set to null, GetErrorMessage() will be used to obtain the error message.

Set this property only for legacy purposes. Otherwise, use GetErrorMessage() method.