Version.TryFormat メソッド

定義

オーバーロード

名前 説明
TryFormat(Span<Char>, Int32)

このバージョン のインスタンスを一部の文字に書式設定しようとします。

TryFormat(Span<Char>, Int32, Int32)

このバージョン のインスタンスを一部の文字に書式設定しようとします。

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

適用対象

TryFormat(Span<Char>, Int32, Int32)

このバージョン のインスタンスを一部の文字に書式設定しようとします。

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

パラメーター

destination
Span<Char>

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

fieldCount
Int32

返すコンポーネントの数。 この値の範囲は 0 から 4 です。

charsWritten
Int32

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

返品

true 書式設定が成功した場合。それ以外の場合は false

適用対象