Guid.IUtf8SpanFormattable.TryFormat メソッド

定義

現在のインスタンスの値を UTF-8 として指定されたバイトスパンに書式設定しようとします。

 virtual bool System.IUtf8SpanFormattable.TryFormat(Span<System::Byte> utf8Destination, [Runtime::InteropServices::Out] int % bytesWritten, ReadOnlySpan<char> format, IFormatProvider ^ provider) = IUtf8SpanFormattable::TryFormat;
bool IUtf8SpanFormattable.TryFormat (Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider provider);
abstract member System.IUtf8SpanFormattable.TryFormat : Span<byte> * int * ReadOnlySpan<char> * IFormatProvider -> bool
override this.System.IUtf8SpanFormattable.TryFormat : Span<byte> * int * ReadOnlySpan<char> * IFormatProvider -> bool
Function TryFormat (utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer, format As ReadOnlySpan(Of Char), provider As IFormatProvider) As Boolean Implements IUtf8SpanFormattable.TryFormat

パラメーター

utf8Destination
Span<Byte>

バイトのスパンとして書式設定されたこのインスタンスの値を書き込むスパン。

bytesWritten
Int32

このメソッドが戻るときに、 に書 utf8Destinationき込まれたバイト数が格納されます。

format
ReadOnlySpan<Char>

utf8Destination に許容される書式を定義する、標準またはカスタムの書式指定文字列を表す文字を格納しているスパン。

provider
IFormatProvider

utf8Destination のカルチャ固有の書式情報を指定する省略可能なオブジェクト。

戻り値

書式設定が正常に実行された場合は true。それ以外の場合は false

実装

適用対象