Utf8.TryWriteInterpolatedStringHandler 建構函式

定義

多載

名稱 Description
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
來源:
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
來源:
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 是否足夠。

備註

此系統僅供編譯器產生的程式碼呼叫。 論點不會像原本那樣被驗證,因為會員本來就打算直接使用。

適用於