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() is used to obtain the error message.
Set this property only for legacy purposes. Otherwise, use the GetErrorMessage() method.