Skip to content

FormatInterpolatedStringHandler.AppendFormatted Method

Overloads

Name Description
AppendFormatted<T>(T) Appends a formatted value to the message.
AppendFormatted<T>(IEnumerable<T>) Appends a formatted enumerable to the message.
AppendFormatted(String, String) Appends a formatted string value to the message using the specified format.

AppendFormatted<T>(T)

Appends a formatted value to the message.

public void AppendFormatted<T>(T? value);

Type Parameters

Name Description
T The type of the value.

Parameters

Name Type Description
value T The value to format and append.

AppendFormatted<T>(IEnumerable<T>)

Appends a formatted enumerable to the message.

public void AppendFormatted<T>(IEnumerable<T> value);

Type Parameters

Name Description
T The type of elements in the enumerable.

Parameters

Name Type Description
value IEnumerable<T> The enumerable to format and append.

AppendFormatted(String, String)

Appends a formatted string value to the message using the specified format.

public void AppendFormatted(string? value, string format);

Parameters

Name Type Description
value String The string value to append.
format String The format specifier. Use "L" for literal (unquoted) output.