PostSharp6.1/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) Method (String, T1)

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

Creates a formatted string with 1 parameter.

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

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.

Type Parameters

T1
Type of the first parameter.

Return Value

Type: FormattedMessage<T1>
See Also