Udostępnij przez


Utf8.TryWrite Metoda

Definicja

Przeciążenia

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

Zapisuje określony ciąg interpolowany do zakresu bajtów UTF-8.

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

Zapisuje określony ciąg interpolowany do zakresu bajtów UTF-8.

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

Źródło:
Utf8.cs
Źródło:
Utf8.cs

Zapisuje określony ciąg interpolowany do zakresu bajtów 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>

Zakres, do którego ma być sformatowany ciąg interpolowany.

handler
Utf8.TryWriteInterpolatedStringHandler

Ciąg interpolowany.

bytesWritten
Int32

Gdy ta metoda zostanie zwrócona, zawiera liczbę znaków zapisanych w zakresie.

Zwraca

true jeśli cały ciąg interpolowany może zostać sformatowany pomyślnie; w przeciwnym razie , false.

Dotyczy

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

Źródło:
Utf8.cs
Źródło:
Utf8.cs

Zapisuje określony ciąg interpolowany do zakresu bajtów 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>

Zakres, do którego ma być sformatowany ciąg interpolowany.

provider
IFormatProvider

Obiekt, który dostarcza informacje o formatowaniu specyficzne dla kultury.

handler
Utf8.TryWriteInterpolatedStringHandler

Ciąg interpolowany.

bytesWritten
Int32

Gdy ta metoda zostanie zwrócona, zawiera liczbę znaków zapisanych w zakresie.

Zwraca

true jeśli cały ciąg interpolowany może zostać sformatowany pomyślnie; w przeciwnym razie , false.

Dotyczy