Compartilhar via


Utf8.TryWrite Método

Definição

Sobrecargas

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

Grava a cadeia de caracteres interpolada especificada no intervalo de bytes UTF-8.

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

Grava a cadeia de caracteres interpolada especificada no intervalo de bytes UTF-8.

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

Origem:
Utf8.cs
Origem:
Utf8.cs

Grava a cadeia de caracteres interpolada especificada no intervalo de bytes 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

Parâmetros

destination
Span<Byte>

O intervalo para o qual a cadeia de caracteres interpolada deve ser formatada.

handler
Utf8.TryWriteInterpolatedStringHandler

A cadeia de caracteres interpolada.

bytesWritten
Int32

Quando esse método retorna, contém o número de caracteres gravados no intervalo.

Retornos

true se toda a cadeia de caracteres interpolada puder ser formatada com êxito; caso contrário, false.

Aplica-se a

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

Origem:
Utf8.cs
Origem:
Utf8.cs

Grava a cadeia de caracteres interpolada especificada no intervalo de bytes 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

Parâmetros

destination
Span<Byte>

O intervalo para o qual a cadeia de caracteres interpolada deve ser formatada.

provider
IFormatProvider

Um objeto que fornece informações de formatação específicas da cultura.

handler
Utf8.TryWriteInterpolatedStringHandler

A cadeia de caracteres interpolada.

bytesWritten
Int32

Quando esse método retorna, contém o número de caracteres gravados no intervalo.

Retornos

true se toda a cadeia de caracteres interpolada puder ser formatada com êxito; caso contrário, false.

Aplica-se a