Utf8.TryWrite メソッド

定義

オーバーロード

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

指定した補間文字列を UTF-8 バイト スパンに書き込みます。

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

指定した補間文字列を UTF-8 バイト スパンに書き込みます。

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

ソース:
Utf8.cs
ソース:
Utf8.cs

指定した補間文字列を 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

パラメーター

destination
Span<Byte>

挿入文字列の書式を設定するスパン。

handler
Utf8.TryWriteInterpolatedStringHandler

補間された文字列。

bytesWritten
Int32

このメソッドから制御が戻るときに、スパンに書き込まれた文字数が格納されます。

戻り値

true 補間された文字列全体を正常に書式設定できる場合は 。それ以外の場合は false

適用対象

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

ソース:
Utf8.cs
ソース:
Utf8.cs

指定した補間文字列を 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

パラメーター

destination
Span<Byte>

挿入文字列の書式を設定するスパン。

provider
IFormatProvider

カルチャ固有の書式情報を提供するオブジェクト。

handler
Utf8.TryWriteInterpolatedStringHandler

補間された文字列。

bytesWritten
Int32

このメソッドから制御が戻るときに、スパンに書き込まれた文字数が格納されます。

戻り値

true 補間された文字列全体を正常に書式設定できる場合は 。それ以外の場合は false

適用対象