Boolean.TryFormat(Span<Char>, Int32) メソッド

定義

現在のブール型インスタンスの値を、指定した文字スパンに書式設定しようとします。

public:
 bool TryFormat(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryFormat (Span<char> destination, out int charsWritten);
member this.TryFormat : Span<char> * int -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

パラメーター

destination
Span<Char>

このインスタンスの値を文字のスパンとして書式設定して書き込むスパン。

charsWritten
Int32

このメソッドが戻るときに、 に書 destinationき込まれた文字数を格納します。

戻り値

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

適用対象