Open sandboxFocus

Property ErrorMessage

ErrorMessage

Gets or sets the error message formatting string.

Declaration
[Obsolete("Use ContractExceptionFactory and ContractLocalizedTextProvider to generate error messages.")]
public string ErrorMessage { get; set; }
Property Value
Type Description
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.