Share via


Utf8.TryWriteInterpolatedStringHandler 建構函式

定義

多載

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, Boolean)

建立用來將插入字串寫入 UTF-8 Span<T> 的處理常式。

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, IFormatProvider, Boolean)

建立用來將插入字串寫入 UTF-8 Span<T> 的處理常式。

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, Boolean)

來源:
Utf8.cs
來源:
Utf8.cs

建立用來將插入字串寫入 UTF-8 Span<T> 的處理常式。

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<System::Byte> destination, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<byte> destination, out bool shouldAppend);
new System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler : int * int * Span<byte> * bool -> System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Byte), ByRef shouldAppend As Boolean)

參數

literalLength
Int32

內插補點字串中內插補點運算式之外的常數位符數目。

formattedCount
Int32

內插補點字串中的插補運算式數目。

destination
Span<Byte>

目的緩衝區。

shouldAppend
Boolean

當這個方法傳回時,如果 true 目的地可能夠長以支援格式設定,則 false 為 ,如果不是,則包含 。

備註

這僅供編譯器產生的程式碼呼叫。 引數不會經過驗證,否則會針對要直接使用的成員進行驗證。

適用於

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, IFormatProvider, Boolean)

來源:
Utf8.cs
來源:
Utf8.cs

建立用來將插入字串寫入 UTF-8 Span<T> 的處理常式。

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<System::Byte> destination, IFormatProvider ^ provider, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<byte> destination, IFormatProvider? provider, out bool shouldAppend);
new System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler : int * int * Span<byte> * IFormatProvider * bool -> System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Byte), provider As IFormatProvider, ByRef shouldAppend As Boolean)

參數

literalLength
Int32

內插補點字串中內插補點運算式之外的常數位符數目。

formattedCount
Int32

內插補點字串中的插補運算式數目。

destination
Span<Byte>

目的緩衝區。

provider
IFormatProvider

物件,提供特定文化特性格式資訊。

shouldAppend
Boolean

當這個方法傳回時,如果 true 目的地可能夠長以支援格式設定,則 false 為 ,如果不是,則包含 。

備註

這僅供編譯器產生的程式碼呼叫。 引數不會經過驗證,否則會針對要直接使用的成員進行驗證。

適用於