PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Formatted­Message­Builder Class / Formatted­Message­Builder Methods / Formatted­Message­Builder.​Formatted Method / Formatted­Message­Builder.​Formatted(T1, T2) Method (String, T1, T2)

FormattedMessageBuilder.Formatted<T1, T2> Method (String, T1, T2)

Creates a formatted string with 2 parameters.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public static FormattedMessage<T1, T2> Formatted<T1, T2>(
	string formattingString,
	T1 arg1,
	T2 arg2
)

Parameters

formattingString
Type: System.String
The text of the log record, including parameters (e.g. Opening {Path} file {ShareMode} sharing mode).
arg1
Type: T1
Value of the first parameter.
arg2
Type: T2
Value of the second parameter.

Type Parameters

T1
Type of the first parameter.
T2
Type of the second parameter.

Return Value

Type: FormattedMessage<T1, T2>
See Also