Open sandboxFocus

Method FormatErrorMessage

FormatErrorMessage(object, string, LocationKind)

Formats the ErrorMessage with concrete values.

Declaration
[Obsolete("Use ContractServices.LocalizedTextProvider.GetFormattedMessage.")]
protected string FormatErrorMessage(object value, string locationName, LocationKind locationKind)
Parameters
Type Name Description
object value

The value assigned to the location.

string locationName

The name of the location.

LocationKind locationKind

The kind of the location.

Returns
Type Description
string

A string derived from ErrorMessage, where placeholders have been replaced by their concrete value.