Condividi tramite


Utf8.TryWriteInterpolatedStringHandler Costruttori

Definizione

Overload

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

Crea un gestore usato per scrivere una stringa interpolata in un oggetto UTF-8 Span<T>.

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

Crea un gestore usato per scrivere una stringa interpolata in un oggetto UTF-8 Span<T>.

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

Origine:
Utf8.cs
Origine:
Utf8.cs

Crea un gestore usato per scrivere una stringa interpolata in un oggetto 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)

Parametri

literalLength
Int32

Numero di caratteri costanti all'esterno delle espressioni di interpolazione nella stringa interpolata.

formattedCount
Int32

Numero di espressioni di interpolazione nella stringa interpolata.

destination
Span<Byte>

Il buffer di destinazione.

shouldAppend
Boolean

Quando questo metodo restituisce, contiene true se la destinazione potrebbe essere abbastanza lunga per supportare la formattazione o false se non è.

Commenti

Ciò deve essere chiamato solo dal codice generato dal compilatore. Gli argomenti non vengono convalidati perché altrimenti devono essere usati direttamente dai membri.

Si applica a

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

Origine:
Utf8.cs
Origine:
Utf8.cs

Crea un gestore usato per scrivere una stringa interpolata in un oggetto 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)

Parametri

literalLength
Int32

Numero di caratteri costanti all'esterno delle espressioni di interpolazione nella stringa interpolata.

formattedCount
Int32

Numero di espressioni di interpolazione nella stringa interpolata.

destination
Span<Byte>

Il buffer di destinazione.

provider
IFormatProvider

Oggetto che fornisce informazioni di formattazione specifiche delle impostazioni cultura.

shouldAppend
Boolean

Quando questo metodo restituisce, contiene true se la destinazione potrebbe essere abbastanza lunga per supportare la formattazione o false se non è.

Commenti

Ciò deve essere chiamato solo dal codice generato dal compilatore. Gli argomenti non vengono convalidati perché altrimenti devono essere usati direttamente dai membri.

Si applica a