Share via


Utf8.TryWrite Méthode

Définition

Surcharges

TryWrite(Span<Byte>, Utf8+TryWriteInterpolatedStringHandler, Int32)

Écrit la chaîne interpolée spécifiée dans l’étendue UTF-8 octets.

TryWrite(Span<Byte>, IFormatProvider, Utf8+TryWriteInterpolatedStringHandler, Int32)

Écrit la chaîne interpolée spécifiée dans l’étendue UTF-8 octets.

TryWrite(Span<Byte>, Utf8+TryWriteInterpolatedStringHandler, Int32)

Source:
Utf8.cs
Source:
Utf8.cs

Écrit la chaîne interpolée spécifiée dans l’étendue UTF-8 octets.

public:
 static bool TryWrite(Span<System::Byte> destination, System::Text::Unicode::Utf8::TryWriteInterpolatedStringHandler % handler, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryWrite (Span<byte> destination, ref System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler handler, out int bytesWritten);
static member TryWrite : Span<byte> * TryWriteInterpolatedStringHandler * int -> bool
Public Shared Function TryWrite (destination As Span(Of Byte), ByRef handler As Utf8.TryWriteInterpolatedStringHandler, ByRef bytesWritten As Integer) As Boolean

Paramètres

destination
Span<Byte>

Étendue dans laquelle la chaîne interpolée doit être mise en forme.

handler
Utf8.TryWriteInterpolatedStringHandler

Chaîne interpolée.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient le nombre de caractères écrits dans l’étendue.

Retours

true si la chaîne interpolée entière a pu être mise en forme correctement ; sinon, false.

S’applique à

TryWrite(Span<Byte>, IFormatProvider, Utf8+TryWriteInterpolatedStringHandler, Int32)

Source:
Utf8.cs
Source:
Utf8.cs

Écrit la chaîne interpolée spécifiée dans l’étendue UTF-8 octets.

public:
 static bool TryWrite(Span<System::Byte> destination, IFormatProvider ^ provider, System::Text::Unicode::Utf8::TryWriteInterpolatedStringHandler % handler, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryWrite (Span<byte> destination, IFormatProvider? provider, ref System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler handler, out int bytesWritten);
static member TryWrite : Span<byte> * IFormatProvider * TryWriteInterpolatedStringHandler * int -> bool
Public Shared Function TryWrite (destination As Span(Of Byte), provider As IFormatProvider, ByRef handler As Utf8.TryWriteInterpolatedStringHandler, ByRef bytesWritten As Integer) As Boolean

Paramètres

destination
Span<Byte>

Étendue dans laquelle la chaîne interpolée doit être mise en forme.

provider
IFormatProvider

Objet qui fournit des informations de mise en forme propres à la culture.

handler
Utf8.TryWriteInterpolatedStringHandler

Chaîne interpolée.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient le nombre de caractères écrits dans l’étendue.

Retours

true si la chaîne interpolée entière a pu être mise en forme correctement ; sinon, false.

S’applique à