PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Contract­Localized­Text­Provider Class/Contract­Localized­Text­Provider Methods/Contract­Localized­Text­Provider.​Get­Formatted­Message Method

ContractLocalizedTextProvider.GetFormattedMessage Method

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

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public string GetFormattedMessage(
	ContractExceptionInfo exceptionInfo
)

Parameters

exceptionInfo
Type: PostSharp.Patterns.Contracts.ContractExceptionInfo
Information about the exception to be created.

Return Value

Type: String
A formatted message that uses the formatting parameters described in the remarks of the documentation of the ContractLocalizedTextProvider class.
See Also