LocationContractAttribute.FormatErrorMessage Method
FormatErrorMessage(Object, String, LocationKind)
Formats the ErrorMessage with concrete values.
Declaration
protected string FormatErrorMessage(object value, string locationName, LocationKind locationKind)
Parameters
Type | Name | Description |
---|---|---|
Object | value | Value assigned to the location. |
System.String | locationName | Name of the location. |
LocationKind | locationKind | Location kind. |
Returns
Type | Description |
---|---|
System.String | A string derived from ErrorMessage, where placeholders have been replaced by their concrete value. |