Redigera

Dela via


StringBuilder.AppendInterpolatedStringHandler Constructors

Definition

Overloads

StringBuilder.AppendInterpolatedStringHandler(Int32, Int32, StringBuilder)

Creates a handler used to append an interpolated string into a StringBuilder.

StringBuilder.AppendInterpolatedStringHandler(Int32, Int32, StringBuilder, IFormatProvider)

Creates a handler used to translate an interpolated string into a String.

StringBuilder.AppendInterpolatedStringHandler(Int32, Int32, StringBuilder)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Creates a handler used to append an interpolated string into a StringBuilder.

public:
 AppendInterpolatedStringHandler(int literalLength, int formattedCount, System::Text::StringBuilder ^ stringBuilder);
public AppendInterpolatedStringHandler (int literalLength, int formattedCount, System.Text.StringBuilder stringBuilder);
new System.Text.StringBuilder.AppendInterpolatedStringHandler : int * int * System.Text.StringBuilder -> System.Text.StringBuilder.AppendInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, stringBuilder As StringBuilder)

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

stringBuilder
StringBuilder

The associated StringBuilder to which to append.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to

StringBuilder.AppendInterpolatedStringHandler(Int32, Int32, StringBuilder, IFormatProvider)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Creates a handler used to translate an interpolated string into a String.

public:
 AppendInterpolatedStringHandler(int literalLength, int formattedCount, System::Text::StringBuilder ^ stringBuilder, IFormatProvider ^ provider);
public AppendInterpolatedStringHandler (int literalLength, int formattedCount, System.Text.StringBuilder stringBuilder, IFormatProvider? provider);
new System.Text.StringBuilder.AppendInterpolatedStringHandler : int * int * System.Text.StringBuilder * IFormatProvider -> System.Text.StringBuilder.AppendInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, stringBuilder As StringBuilder, provider As IFormatProvider)

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

stringBuilder
StringBuilder

The associated StringBuilder to which to append.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to