PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ContractsContract­Localized­Text­ProviderGet­Formatted­Message
Open sandboxFocus

ContractLocalizedTextProvider.GetFormattedMessage Method

GetFormattedMessage(ContractExceptionInfo)

Gets a message template using GetMessage(String) and formats it using the values in exceptionInfo.

Declaration
public string GetFormattedMessage(ContractExceptionInfo exceptionInfo)
Parameters
Type Name Description
ContractExceptionInfo exceptionInfo

Information about the exception to be created.

Returns
Type Description
String

A formatted message that uses the formatting parameters described in the remarks of the documentation of the ContractLocalizedTextProvider class.