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: 2023.0.3.0 (2023.0.3.0)
C#
public string GetFormattedMessage( ContractExceptionInfo exceptionInfo )
Parameters
- exceptionInfo
- Type: PostSharp.Patterns.Contracts.ContractExceptionInfo
Information about the exception to be created.
Return Value
Type: StringA formatted message that uses the formatting parameters described in the remarks of the documentation of the ContractLocalizedTextProvider class.