Jazyk

Utf8.TryWrite Metoda

Definice

Přetížení

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

Zapíše zadaný interpolovaný řetězec do rozsahu bajtů UTF-8.

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

Zapíše zadaný interpolovaný řetězec do rozsahu bajtů UTF-8.

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

Zdroj:
Utf8.cs
Zdroj:
Utf8.cs
Zdroj:
Utf8.cs
Zdroj:
Utf8.cs

Zapíše zadaný interpolovaný řetězec do rozsahu bajtů UTF-8.

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

Parametry

destination
Span<Byte>

Rozsah, do kterého má být interpolovaný řetězec formátován.

handler
Utf8.TryWriteInterpolatedStringHandler

Interpolovaný řetězec.

bytesWritten
Int32

Když tato metoda vrátí, obsahuje počet znaků zapsaných do rozsahu.

Návraty

truepokud by celý interpolovaný řetězec mohl být úspěšně naformátován; v opačném případě . false

Platí pro

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

Zdroj:
Utf8.cs
Zdroj:
Utf8.cs
Zdroj:
Utf8.cs
Zdroj:
Utf8.cs

Zapíše zadaný interpolovaný řetězec do rozsahu bajtů UTF-8.

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

Parametry

destination
Span<Byte>

Rozsah, do kterého má být interpolovaný řetězec formátován.

provider
IFormatProvider

Objekt, který poskytuje informace o formátování specifické pro jazykovou verzi.

handler
Utf8.TryWriteInterpolatedStringHandler

Interpolovaný řetězec.

bytesWritten
Int32

Když tato metoda vrátí, obsahuje počet znaků zapsaných do rozsahu.

Návraty

truepokud by celý interpolovaný řetězec mohl být úspěšně naformátován; v opačném případě . false

Platí pro