Skip to content

FormatInterpolatedStringHandler.AppendFormatted Method ​

Overloads ​

NameDescription
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.

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

View source

Type Parameters ​

NameDescription
TThe type of the value.

Parameters ​

NameTypeDescription
valueTThe value to format and append.

AppendFormatted<T>(IEnumerable<T>) ​

Appends a formatted enumerable to the message.

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

View source

Type Parameters ​

NameDescription
TThe type of elements in the enumerable.

Parameters ​

NameTypeDescription
valueIEnumerable<T>The enumerable to format and append.

AppendFormatted(String, String) ​

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

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

View source

Parameters ​

NameTypeDescription
valueStringThe string value to append.
formatStringThe format specifier. Use "L" for literal (unquoted) output.